Troubleshooting one of the examples.

I did manage to get it working. (I had to use the CMake GUI, for whatever reason it was not working from the command line). For the time being, I’m going to continue trying to get it working in C++, since I will likely need to modify the filters at that level.

However, now I’m having another problem. I’ve tried reading a Dicom folder into a different example, by adding

#include <vtkDICOMImageReader.h>
...
  // This code has been copied in directly from the other example.
  vtkSmartPointer<vtkDICOMImageReader> readerIn =
      vtkSmartPointer<vtkDICOMImageReader>::New();
  readerIn->SetDirectoryName(folder.c_str());
  readerIn->Update();

I’m getting linker errors. (It’s not just in this case, when I try to reference any classes in a new header, I’m getting linker errors as well)

The Include directories list seems to be pointed at the correct folder

And the linker’s “Additional Dependencies” path is identical between all the examples that I’ve looked at, so I don’t believe it is that either.

The linker errors are shown:

image