[Insight-users] Wrapping link errors for Examples

anast.jm at pg.com anast.jm at pg.com
Thu, 5 Feb 2004 11:01:23 -0500


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

Luis...oops I left out a key word in the fIrst build TCL 
WRAPPING=OFF...sorry about that...any help appreciated...john

> I've built ITK 1.6.0 on MSVC6 (Win2K) with tcl wrapping OFF with no 
errors
> (build testing/examples turned on), but when I turn on tcl wrapping I
> get the following link errors





Luis Ibanez <luis.ibanez at kitware.com>
Sent by: insight-users-admin at itk.org
02/04/2004 07:21 PM

 
        To:     John Anast-JM/PGI at PGI
        cc:     insight-users at itk.org
        Subject:        Re: [Insight-users] Wrapping link errors for Examples



Hi John,

Can you please clarify something in your email,

You said:

 > 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


I couldn'f figure out the difference between the
first built and the second. In the first case you
are building

    TCL WRAPPING   = ON
    EXAMPLES       = ON
    TESTING        = ON

    Get erros      = No

While in the second you are building

    TCL WRAPPING   = ON
    EXAMPLES       = ON
    TESTING        = ON

    Get errors     = yes


Please give us a hint,


Thanks


   Luis


----------------------------
anast.jm at pg.com wrote:

> 
> 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.



_______________________________________________
Insight-users mailing list
Insight-users at itk.org
http://www.itk.org/mailman/listinfo/insight-users



--=_alternative 005804D085256E31_=
Content-Type: text/html; charset="us-ascii"


<br><font size=2 face="sans-serif">Luis...oops I left out a key word in the fIrst build TCL WRAPPING=OFF...sorry about that...any help appreciated...john</font>
<br>
<br><font size=2 face="Courier New">&gt; I've built ITK 1.6.0 on MSVC6 (Win2K) with tcl wrapping OFF with no errors<br>
&gt; (build testing/examples turned on), but when I turn on tcl wrapping I<br>
&gt; get the following link errors</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>Luis Ibanez &lt;luis.ibanez at kitware.com&gt;</b></font>
<br><font size=1 face="sans-serif">Sent by: insight-users-admin at itk.org</font>
<p><font size=1 face="sans-serif">02/04/2004 07:21 PM</font>
<br>
<td><font size=1 face="Arial">&nbsp; &nbsp; &nbsp; &nbsp; </font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; To: &nbsp; &nbsp; &nbsp; &nbsp;John Anast-JM/PGI at PGI</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; cc: &nbsp; &nbsp; &nbsp; &nbsp;insight-users at itk.org</font>
<br><font size=1 face="sans-serif">&nbsp; &nbsp; &nbsp; &nbsp; Subject: &nbsp; &nbsp; &nbsp; &nbsp;Re: [Insight-users] Wrapping link errors for Examples</font></table>
<br>
<br>
<br><font size=2 face="Courier New"><br>
Hi John,<br>
<br>
Can you please clarify something in your email,<br>
<br>
You said:<br>
<br>
 &gt; I've built ITK 1.6.0 on MSVC6 (Win2K) with tcl wrapping with no errors<br>
 &gt; (build testing/examples turned on), but when I turn on tcl wrapping I<br>
 &gt; get the following link errors<br>
<br>
<br>
I couldn'f figure out the difference between the<br>
first built and the second. In the first case you<br>
are building<br>
<br>
 &nbsp; &nbsp;TCL WRAPPING &nbsp; = ON<br>
 &nbsp; &nbsp;EXAMPLES &nbsp; &nbsp; &nbsp; = ON<br>
 &nbsp; &nbsp;TESTING &nbsp; &nbsp; &nbsp; &nbsp;= ON<br>
<br>
 &nbsp; &nbsp;Get erros &nbsp; &nbsp; &nbsp;= No<br>
<br>
While in the second you are building<br>
<br>
 &nbsp; &nbsp;TCL WRAPPING &nbsp; = ON<br>
 &nbsp; &nbsp;EXAMPLES &nbsp; &nbsp; &nbsp; = ON<br>
 &nbsp; &nbsp;TESTING &nbsp; &nbsp; &nbsp; &nbsp;= ON<br>
<br>
 &nbsp; &nbsp;Get errors &nbsp; &nbsp; = yes<br>
<br>
<br>
Please give us a hint,<br>
<br>
<br>
Thanks<br>
<br>
<br>
 &nbsp; Luis<br>
<br>
<br>
----------------------------<br>
anast.jm at pg.com wrote:<br>
<br>
&gt; <br>
&gt; I've built ITK 1.6.0 on MSVC6 (Win2K) with tcl wrapping with no errors <br>
&gt; (build testing/examples turned on), but when I turn on tcl wrapping I <br>
&gt; get the following link errors for Segmentation Examples...any ideas. If <br>
&gt; I turn off examples it builds with no errors. I downloaded and built <br>
&gt; CableSwig-ITK-1.6.0 (with no errors). Am using cmake 1.8p3. I can send <br>
&gt; cmakelist.txt if needed. I didn't get any hits in the FAQ or the <br>
&gt; userlist...thanks, john<br>
&gt; <br>
&gt; p.s. I downloaded the gz files not the zips just to be sure IE didn't <br>
&gt; mess em up...<br>
&gt; <br>
&gt; --------------------Configuration: SegmentationExamples - Win32 <br>
&gt; Release--------------------<br>
&gt; Compiling...<br>
&gt; SegmentationExamples.cxx<br>
&gt; Linking...<br>
&gt; &nbsp; &nbsp;Creating library P:\AnastDev\Insight <br>
&gt; 160\In160\bin\Release/SegmentationExamples.lib and object </font>
<br><font size=2 face="Courier New">&gt; P:\AnastDev\Insight 160\In160\bin\Release/SegmentationExamples.exp<br>
&gt; --------------------Configuration: SegmentationExamples2 - Win32 <br>
&gt; Release--------------------<br>
&gt; Linking...<br>
&gt; ITKCommon.lib(ITKCommon.dll) : error LNK2005: &quot;public: virtual <br>
&gt; __thiscall itk::ExceptionObject::~ExceptionObject(void)&quot; <br>
&gt; (??1ExceptionObject at itk at  at UAE at XZ) already defined in <br>
&gt; SegmentationExamples2.obj<br>
&gt; ITKCommon.lib(ITKCommon.dll) : error LNK2005: &quot;protected: void <br>
&gt; __thiscall itk::ExceptionObject::UpdateWhat(void)&quot; <br>
&gt; (?UpdateWhat at ExceptionObject at itk at  at IAEXXZ) already defined in <br>
&gt; SegmentationExamples2.obj<br>
&gt; ITKCommon.lib(ITKCommon.dll) : error LNK2005: &quot;public: __thiscall <br>
&gt; itk::ExceptionObject::ExceptionObject(class itk::ExceptionObject const <br>
&gt; &amp;)&quot; (??0ExceptionObject at itk at  at QAE at ABV01 at  at Z) already defined in <br>
&gt; SegmentationExamples2.obj<br>
&gt; ITKCommon.lib(ITKCommon.dll) : error LNK2005: &quot;public: __thiscall <br>
&gt; itk::ExceptionObject::ExceptionObject(char const *,unsigned int,char <br>
&gt; const *,char const *)&quot; (??0ExceptionObject at itk at  at QAE at PBDI00 at Z) already <br>
&gt; defined in SegmentationExamples2.obj<br>
&gt; ITKCommon.lib(ITKCommon.dll) : warning LNK4006: &quot;public: virtual <br>
&gt; __thiscall itk::ExceptionObject::~ExceptionObject(void)&quot; <br>
&gt; (??1ExceptionObject at itk at  at UAE at XZ) already defined in <br>
&gt; SegmentationExamples2.obj; second definition ignored<br>
&gt; ITKCommon.lib(ITKCommon.dll) : warning LNK4006: &quot;protected: void <br>
&gt; __thiscall itk::ExceptionObject::UpdateWhat(void)&quot; <br>
&gt; (?UpdateWhat at ExceptionObject at itk at  at IAEXXZ) already defined in <br>
&gt; SegmentationExamples2.obj; second definition ignored<br>
&gt; ITKCommon.lib(ITKCommon.dll) : warning LNK4006: &quot;public: __thiscall <br>
&gt; itk::ExceptionObject::ExceptionObject(class itk::ExceptionObject const <br>
&gt; &amp;)&quot; (??0ExceptionObject at itk at  at QAE at ABV01 at  at Z) already defined in <br>
&gt; SegmentationExamples2.obj; second definition ign<br>
&gt; ored<br>
&gt; ITKCommon.lib(ITKCommon.dll) : warning LNK4006: &quot;public: __thiscall <br>
&gt; itk::ExceptionObject::ExceptionObject(char const *,unsigned int,char <br>
&gt; const *,char const *)&quot; (??0ExceptionObject at itk at  at QAE at PBDI00 at Z) already <br>
&gt; defined in SegmentationExamples2.obj; seco<br>
&gt; nd definition ignored<br>
&gt; &nbsp; &nbsp;Creating library P:\AnastDev\Insight <br>
&gt; 160\In160\bin\Release/SegmentationExamples2.lib and object <br>
&gt; P:\AnastDev\Insight 160\In160\bin\Release/SegmentationExamples2.exp<br>
&gt; SegmentationExamples2.obj : error LNK2001: unresolved external symbol <br>
&gt; &quot;public: static float const itk::NumericTraits&lt;float&gt;::Zero&quot; <br>
&gt; (?Zero at ?$NumericTraits at M at itk at  at 2MB)<br>
&gt; SegmentationExamples2.obj : error LNK2001: unresolved external symbol <br>
&gt; &quot;public: static double const itk::NumericTraits&lt;double&gt;::Zero&quot; <br>
&gt; (?Zero at ?$NumericTraits at N at itk at  at 2NB)<br>
&gt; SegmentationExamples2.obj : error LNK2001: unresolved external symbol <br>
&gt; &quot;public: static unsigned char const itk::NumericTraits&lt;unsigned <br>
&gt; char&gt;::Zero&quot; (?Zero at ?$NumericTraits at E at itk at  at 2EB)<br>
&gt; SegmentationExamples2.obj : error LNK2001: unresolved external symbol <br>
&gt; &quot;public: static float const itk::NumericTraits&lt;float&gt;::One&quot; <br>
&gt; (?One at ?$NumericTraits at M at itk at  at 2MB)<br>
&gt; SegmentationExamples2.obj : error LNK2001: unresolved external symbol <br>
&gt; &quot;public: static double const itk::NumericTraits&lt;double&gt;::One&quot; <br>
&gt; (?One at ?$NumericTraits at N at itk at  at 2NB)<br>
&gt; P:\AnastDev\Insight 160\In160\bin\Release/SegmentationExamples2.exe : <br>
&gt; fatal error LNK1120: 5 unresolved externals<br>
&gt; Error executing link.exe.<br>
<br>
<br>
<br>
_______________________________________________<br>
Insight-users mailing list<br>
Insight-users at itk.org<br>
http://www.itk.org/mailman/listinfo/insight-users<br>
</font>
<br>
<br>
--=_alternative 005804D085256E31_=--