[Insight-users] Wrapping link errors for Examples

anast.jm at pg.com anast.jm at pg.com
Wed, 4 Feb 2004 18:14:00 -0500


This is a multipart message in MIME format.
--=_alternative 007F2A8F85256E30_=
Content-Type: text/plain; charset="us-ascii"

I've built ITK 1.6.0 on MSVC6 (Win2K) with tcl wrapping with no errors 
(build testing/examples turned on), but when I turn on tcl wrapping I get 
the following link errors for Segmentation Examples...any ideas. If I turn 
off examples it builds with no errors. I downloaded and built 
CableSwig-ITK-1.6.0 (with no errors). Am using cmake 1.8p3. I can send 
cmakelist.txt if needed. I didn't get any hits in the FAQ or the 
userlist...thanks, john

p.s. I downloaded the gz files not the zips just to be sure IE didn't mess 
em up...

--------------------Configuration: SegmentationExamples - Win32 
Release--------------------
Compiling...
SegmentationExamples.cxx
Linking...
   Creating library P:\AnastDev\Insight 
160\In160\bin\Release/SegmentationExamples.lib and object 
P:\AnastDev\Insight 160\In160\bin\Release/SegmentationExamples.exp
--------------------Configuration: SegmentationExamples2 - Win32 
Release--------------------
Linking...
ITKCommon.lib(ITKCommon.dll) : error LNK2005: "public: virtual __thiscall 
itk::ExceptionObject::~ExceptionObject(void)" 
(??1ExceptionObject at itk at  at UAE at XZ) already defined in 
SegmentationExamples2.obj
ITKCommon.lib(ITKCommon.dll) : error LNK2005: "protected: void __thiscall 
itk::ExceptionObject::UpdateWhat(void)" 
(?UpdateWhat at ExceptionObject at itk at  at IAEXXZ) already defined in 
SegmentationExamples2.obj
ITKCommon.lib(ITKCommon.dll) : error LNK2005: "public: __thiscall 
itk::ExceptionObject::ExceptionObject(class itk::ExceptionObject const &)" 
(??0ExceptionObject at itk at  at QAE at ABV01 at  at Z) already defined in 
SegmentationExamples2.obj
ITKCommon.lib(ITKCommon.dll) : error LNK2005: "public: __thiscall 
itk::ExceptionObject::ExceptionObject(char const *,unsigned int,char const 
*,char const *)" (??0ExceptionObject at itk at  at QAE at PBDI00 at Z) already defined in 
SegmentationExamples2.obj
ITKCommon.lib(ITKCommon.dll) : warning LNK4006: "public: virtual 
__thiscall itk::ExceptionObject::~ExceptionObject(void)" 
(??1ExceptionObject at itk at  at UAE at XZ) already defined in 
SegmentationExamples2.obj; second definition ignored
ITKCommon.lib(ITKCommon.dll) : warning LNK4006: "protected: void 
__thiscall itk::ExceptionObject::UpdateWhat(void)" 
(?UpdateWhat at ExceptionObject at itk at  at IAEXXZ) already defined in 
SegmentationExamples2.obj; second definition ignored
ITKCommon.lib(ITKCommon.dll) : warning LNK4006: "public: __thiscall 
itk::ExceptionObject::ExceptionObject(class itk::ExceptionObject const &)" 
(??0ExceptionObject at itk at  at QAE at ABV01 at  at Z) already defined in 
SegmentationExamples2.obj; second definition ign
ored
ITKCommon.lib(ITKCommon.dll) : warning LNK4006: "public: __thiscall 
itk::ExceptionObject::ExceptionObject(char const *,unsigned int,char const 
*,char const *)" (??0ExceptionObject at itk at  at QAE at PBDI00 at Z) already defined in 
SegmentationExamples2.obj; seco
nd definition ignored
   Creating library P:\AnastDev\Insight 
160\In160\bin\Release/SegmentationExamples2.lib and object 
P:\AnastDev\Insight 160\In160\bin\Release/SegmentationExamples2.exp
SegmentationExamples2.obj : error LNK2001: unresolved external symbol 
"public: static float const itk::NumericTraits<float>::Zero" 
(?Zero at ?$NumericTraits at M at itk at  at 2MB)
SegmentationExamples2.obj : error LNK2001: unresolved external symbol 
"public: static double const itk::NumericTraits<double>::Zero" 
(?Zero at ?$NumericTraits at N at itk at  at 2NB)
SegmentationExamples2.obj : error LNK2001: unresolved external symbol 
"public: static unsigned char const itk::NumericTraits<unsigned 
char>::Zero" (?Zero at ?$NumericTraits at E at itk at  at 2EB)
SegmentationExamples2.obj : error LNK2001: unresolved external symbol 
"public: static float const itk::NumericTraits<float>::One" 
(?One at ?$NumericTraits at M at itk at  at 2MB)
SegmentationExamples2.obj : error LNK2001: unresolved external symbol 
"public: static double const itk::NumericTraits<double>::One" 
(?One at ?$NumericTraits at N at itk at  at 2NB)
P:\AnastDev\Insight 160\In160\bin\Release/SegmentationExamples2.exe : 
fatal error LNK1120: 5 unresolved externals
Error executing link.exe.
--=_alternative 007F2A8F85256E30_=
Content-Type: text/html; charset="us-ascii"


<br><font size=2 face="sans-serif">I've built ITK 1.6.0 on MSVC6 (Win2K) with tcl wrapping with no errors (build testing/examples turned on), but when I turn on tcl wrapping I get the following link errors for Segmentation Examples...any ideas. If I turn off examples it builds with no errors. I downloaded and built CableSwig-ITK-1.6.0 (with no errors). Am using cmake 1.8p3. I can send cmakelist.txt if needed. I didn't get any hits in the FAQ or the userlist...thanks, john</font>
<br>
<br><font size=2 face="sans-serif">p.s. I downloaded the gz files not the zips just to be sure IE didn't mess em up...</font>
<br>
<br><font size=2 face="sans-serif">--------------------Configuration: SegmentationExamples - Win32 Release--------------------</font>
<br><font size=2 face="sans-serif">Compiling...</font>
<br><font size=2 face="sans-serif">SegmentationExamples.cxx</font>
<br><font size=2 face="sans-serif">Linking...</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp;Creating library P:\AnastDev\Insight 160\In160\bin\Release/SegmentationExamples.lib and object P:\AnastDev\Insight 160\In160\bin\Release/SegmentationExamples.exp</font>
<br><font size=2 face="sans-serif">--------------------Configuration: SegmentationExamples2 - Win32 Release--------------------</font>
<br><font size=2 face="sans-serif">Linking...</font>
<br><font size=2 face="sans-serif">ITKCommon.lib(ITKCommon.dll) : error LNK2005: &quot;public: virtual __thiscall itk::ExceptionObject::~ExceptionObject(void)&quot; (??1ExceptionObject at itk at  at UAE at XZ) already defined in SegmentationExamples2.obj</font>
<br><font size=2 face="sans-serif">ITKCommon.lib(ITKCommon.dll) : error LNK2005: &quot;protected: void __thiscall itk::ExceptionObject::UpdateWhat(void)&quot; (?UpdateWhat at ExceptionObject at itk at  at IAEXXZ) already defined in SegmentationExamples2.obj</font>
<br><font size=2 face="sans-serif">ITKCommon.lib(ITKCommon.dll) : error LNK2005: &quot;public: __thiscall itk::ExceptionObject::ExceptionObject(class itk::ExceptionObject const &amp;)&quot; (??0ExceptionObject at itk at  at QAE at ABV01 at  at Z) already defined in SegmentationExamples2.obj</font>
<br><font size=2 face="sans-serif">ITKCommon.lib(ITKCommon.dll) : error LNK2005: &quot;public: __thiscall itk::ExceptionObject::ExceptionObject(char const *,unsigned int,char const *,char const *)&quot; (??0ExceptionObject at itk at  at QAE at PBDI00 at Z) already defined in SegmentationExamples2.obj</font>
<br><font size=2 face="sans-serif">ITKCommon.lib(ITKCommon.dll) : warning LNK4006: &quot;public: virtual __thiscall itk::ExceptionObject::~ExceptionObject(void)&quot; (??1ExceptionObject at itk at  at UAE at XZ) already defined in SegmentationExamples2.obj; second definition ignored</font>
<br><font size=2 face="sans-serif">ITKCommon.lib(ITKCommon.dll) : warning LNK4006: &quot;protected: void __thiscall itk::ExceptionObject::UpdateWhat(void)&quot; (?UpdateWhat at ExceptionObject at itk at  at IAEXXZ) already defined in SegmentationExamples2.obj; second definition ignored</font>
<br><font size=2 face="sans-serif">ITKCommon.lib(ITKCommon.dll) : warning LNK4006: &quot;public: __thiscall itk::ExceptionObject::ExceptionObject(class itk::ExceptionObject const &amp;)&quot; (??0ExceptionObject at itk at  at QAE at ABV01 at  at Z) already defined in SegmentationExamples2.obj; second definition ign</font>
<br><font size=2 face="sans-serif">ored</font>
<br><font size=2 face="sans-serif">ITKCommon.lib(ITKCommon.dll) : warning LNK4006: &quot;public: __thiscall itk::ExceptionObject::ExceptionObject(char const *,unsigned int,char const *,char const *)&quot; (??0ExceptionObject at itk at  at QAE at PBDI00 at Z) already defined in SegmentationExamples2.obj; seco</font>
<br><font size=2 face="sans-serif">nd definition ignored</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp;Creating library P:\AnastDev\Insight 160\In160\bin\Release/SegmentationExamples2.lib and object P:\AnastDev\Insight 160\In160\bin\Release/SegmentationExamples2.exp</font>
<br><font size=2 face="sans-serif">SegmentationExamples2.obj : error LNK2001: unresolved external symbol &quot;public: static float const itk::NumericTraits&lt;float&gt;::Zero&quot; (?Zero at ?$NumericTraits at M at itk at  at 2MB)</font>
<br><font size=2 face="sans-serif">SegmentationExamples2.obj : error LNK2001: unresolved external symbol &quot;public: static double const itk::NumericTraits&lt;double&gt;::Zero&quot; (?Zero at ?$NumericTraits at N at itk at  at 2NB)</font>
<br><font size=2 face="sans-serif">SegmentationExamples2.obj : error LNK2001: unresolved external symbol &quot;public: static unsigned char const itk::NumericTraits&lt;unsigned char&gt;::Zero&quot; (?Zero at ?$NumericTraits at E at itk at  at 2EB)</font>
<br><font size=2 face="sans-serif">SegmentationExamples2.obj : error LNK2001: unresolved external symbol &quot;public: static float const itk::NumericTraits&lt;float&gt;::One&quot; (?One at ?$NumericTraits at M at itk at  at 2MB)</font>
<br><font size=2 face="sans-serif">SegmentationExamples2.obj : error LNK2001: unresolved external symbol &quot;public: static double const itk::NumericTraits&lt;double&gt;::One&quot; (?One at ?$NumericTraits at N at itk at  at 2NB)</font>
<br><font size=2 face="sans-serif">P:\AnastDev\Insight 160\In160\bin\Release/SegmentationExamples2.exe : fatal error LNK1120: 5 unresolved externals</font>
<br><font size=2 face="sans-serif">Error executing link.exe.</font>
--=_alternative 007F2A8F85256E30_=--