[Insight-users] Link error for ITK+VTK+GDCM+QT in Visual Studio 2008
Jafari, Kourosh
kjafari at rad.hfh.edu
Thu Jun 23 23:23:10 EDT 2011
Dear all,
I have used ITK+VTK+QT in visual studio 2008 and so far it has worked fine. I have added GDCM and got the following errors. Has anybody had this experience? I use ITK 3.20.0, VTK 5.6.0, QT 4.7.1, and GDCM 2.0.14. I had previously had link problems with GDCM 2.0.17 and that is why I switched to 2.0.14. The following errors appear to be a conflict between ITK and GDCM.
Thanks a lot!
Kourosh
1>------ Build started: Project: DentalImplant, Configuration: Release Win32 ------
1>Linking...
1>gdcmMSFF.lib(gdcmPixmapReader.obj) : error LNK2005: "public: __thiscall gdcm::File::File(void)" (??0File at gdcm@@QAE at XZ) already defined in itkgdcm.lib(gdcmFile.obj)
1>gdcmMSFF.lib(gdcmPixmapReader.obj) : error LNK2005: "public: virtual __thiscall gdcm::File::~File(void)" (??1File at gdcm@@UAE at XZ) already defined in itkgdcm.lib(gdcmFile.obj)
1>gdcmDICT.lib(gdcmDicts.obj) : error LNK2005: "public: __thiscall gdcm::Dict::Dict(void)" (??0Dict at gdcm@@QAE at XZ) already defined in itkgdcm.lib(gdcmDict.obj)
1>gdcmDICT.lib(gdcmGlobal.obj) : error LNK2005: "public: __thiscall gdcm::Global::Global(void)" (??0Global at gdcm@@QAE at XZ) already defined in itkgdcm.lib(gdcmGlobal.obj)
1>gdcmDICT.lib(gdcmGlobal.obj) : error LNK2005: "public: __thiscall gdcm::Global::~Global(void)" (??1Global at gdcm@@QAE at XZ) already defined in itkgdcm.lib(gdcmGlobal.obj)
1>gdcmopenjpeg.lib(j2k.obj) : error LNK2005: _j2k_dec_mstab already defined in itkopenjpeg.lib(j2k.obj)
1> Creating library C:\Users\Kourosh\Research\Softwares\Toolkit\MyCodes\DentalImplant\Release\DentalImplant.lib and object C:\Users\Kourosh\Research\Softwares\Toolkit\MyCodes\DentalImplant\Release\DentalImplant.exp
1>C:\Users\Kourosh\Research\Softwares\Toolkit\MyCodes\DentalImplant\Release\DentalImplant.exe : fatal error LNK1169: one or more multiply defined symbols found
1>Build log was saved at "file://c:\Users\Kourosh\Research\Softwares\Toolkit\MyCodes\DentalImplant\DentalImplant.dir\Release\BuildLog.htm"
1>DentalImplant - 7 error(s), 0 warning(s)
2>------ Skipped Build: Project: ALL_BUILD, Configuration: Release Win32 ------
2>Project not selected to build for this solution configuration
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 1 skipped ==========
More information about the Insight-users
mailing list