[vtkusers] build with gdcm

John Drescher drescherjm at gmail.com
Sat Jun 18 10:32:41 EDT 2011


2011/6/18 Jafari, Kourosh <kjafari at rad.hfh.edu>:
> Hello John,
>
> Actually, I am trying to use vtk, itk, and gdcm together with Visual Studio 2008. But it gives me the following compilation error:
>
> error LNK2019: unresolved external symbol "public: static class vtkGDCMImageReader * __cdecl vtkGDCMImageReader::New(void)
>
> I have created my project using CMake and the following CMakeLists.txt:
>
> cmake_minimum_required(VERSION 2.8)
> PROJECT(TestGDCM)
> FIND_PACKAGE(GDCM)
> IF(GDCM_FOUND)
>    INCLUDE(${GDCM_USE_FILE})
> ENDIF(GDCM_FOUND)
> ADD_EXECUTABLE(TestGDCM TestGDCM.cxx)
> TARGET_LINK_LIBRARIES(TestGDCM)
>
> Actually, during building GDCM I had 17 error messages too. So maybe that is related to the above error message. Any idea what is wrong?

Please start a new thread. Your question is way off topic for the
current thread.

John



More information about the vtkusers mailing list