[Dcmlib] Unresolved External on vtkgdcmViewer2

Mathieu Malaterre mathieu.malaterre at gmail.com
Mon Dec 3 17:50:32 CET 2007


You cannot mix shared lib and static lib on Win32. You have to be
consistant, so either try:

VTK static + GDCM static
OR
VTK shared+ GDCM shared

You should really delete your whole binary tree and reconfigure CMake
from scratch to avoid any weird win32 behavior.

HTH
-Mathieu

On Dec 3, 2007 5:05 PM,  <jtaclas at bidmc.harvard.edu> wrote:
>
>
>
> I'm trying to get gdcm to work with vtk, and I'm not sure what this error
> means.
>  -Jason
>
>  1>------ Build started: Project: vtkgdcmViewer2, Configuration: Debug Win32
> ------
>  1>Linking...
>  1>   Creating library C:\gdcm\bin\bin\Debug\vtkgdcmViewer2.lib and object
> C:\gdcm\bin\bin\Debug\vtkgdcmViewer2.exp
>  1>vtkgdcmViewer2.obj : error LNK2019: unresolved external symbol
> "__declspec(dllimport) public: static class vtkImageColorViewer * __cdecl
> vtkImageColorViewer::New(void)" (__imp_?New at vtkImageColorViewer@@SAPAV1 at XZ)
> referenced in function _main
>  1>C:\gdcm\bin\bin\Debug\vtkgdcmViewer2.exe : fatal error LNK1120: 1
> unresolved externals
>  1>Build log was saved at
> "file://c:\gdcm\bin\vtk\vtkgdcmViewer2.dir\Debug\BuildLog.htm"
>  1>vtkgdcmViewer2 - 2 error(s), 0 warning(s)
> _______________________________________________
> Dcmlib mailing list
> Dcmlib at creatis.insa-lyon.fr
> http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
>



-- 
Mathieu



More information about the Dcmlib mailing list