[IGSTK-Developers] IGSTK compiling errors on Windows

Patrick Cheng cheng at isis.georgetown.edu
Thu May 29 10:40:15 EDT 2008


Hi Haiying,

Did you build ITK with BUILD_SHARED_LIBS on? Try turn it off and rebuild 
ITK.

Patrick

Haiying Liu wrote:
> Hi,
> 
> I checked out the latest IGSTK code (cvs head). When I compiled on 
> Linux, it works well. However, if I compiled it on Windows, I got the 
> following errors. Any suggestions?
> 
> Thanks a lot,
> 
> 
> Haiying
> 
> ------ Build started: Project: igstkVersionTest, Configuration: Debug 
> Win32 ------
> Linking...
> igstkVersionTest.obj : error LNK2019: unresolved external symbol 
> "__declspec(dllimport) public: static char const * __cdecl 
> itk::Version::GetITKSourceVersion(void)" 
> (__imp_?GetITKSourceVersion at Version@itk@@SAPBDXZ) referenced in function 
> _main
> 
> igstkVersionTest.obj : error LNK2019: unresolved external symbol 
> "__declspec(dllimport) public: static int __cdecl 
> itk::Version::GetITKBuildVersion(void)" 
> (__imp_?GetITKBuildVersion at Version@itk@@SAHXZ) referenced in function _main
> 
> igstkVersionTest.obj : error LNK2019: unresolved external symbol 
> "__declspec(dllimport) public: static int __cdecl 
> itk::Version::GetITKMinorVersion(void)" 
> (__imp_?GetITKMinorVersion at Version@itk@@SAHXZ) referenced in function _main
> 
> igstkVersionTest.obj : error LNK2019: unresolved external symbol 
> "__declspec(dllimport) public: static int __cdecl 
> itk::Version::GetITKMajorVersion(void)" 
> (__imp_?GetITKMajorVersion at Version@itk@@SAHXZ) referenced in function _main
> 
> igstkVersionTest.obj : error LNK2019: unresolved external symbol 
> "__declspec(dllimport) public: static char const * __cdecl 
> itk::Version::GetITKVersion(void)" 
> (__imp_?GetITKVersion at Version@itk@@SAPBDXZ) referenced in function _main
> 
> C:\projects\igstk\IGSTK-build\bin\Debug\igstkVersionTest.exe : fatal 
> error LNK1120: 5 unresolved externals Build log was saved at 
> "file://c:\projects\igstk\IGSTK-build\Testing\igstkVersionTest.dir\Debug\BuildLog.htm" 
> igstkVersionTest - 6 error(s), 0 warning(s)
> 
> 
>  
> 
> 


More information about the IGSTK-Developers mailing list