[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">> I've built ITK 1.6.0 on MSVC6 (Win2K) with tcl wrapping OFF with no errors<br>
> (build testing/examples turned on), but when I turn on tcl wrapping I<br>
> 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 <luis.ibanez at kitware.com></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">        </font>
<br><font size=1 face="sans-serif">        To:        John Anast-JM/PGI at PGI</font>
<br><font size=1 face="sans-serif">        cc:        insight-users at itk.org</font>
<br><font size=1 face="sans-serif">        Subject:        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>
 > I've built ITK 1.6.0 on MSVC6 (Win2K) with tcl wrapping with no errors<br>
 > (build testing/examples turned on), but when I turn on tcl wrapping I<br>
 > 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>
    TCL WRAPPING   = ON<br>
    EXAMPLES       = ON<br>
    TESTING        = ON<br>
<br>
    Get erros      = No<br>
<br>
While in the second you are building<br>
<br>
    TCL WRAPPING   = ON<br>
    EXAMPLES       = ON<br>
    TESTING        = ON<br>
<br>
    Get errors     = yes<br>
<br>
<br>
Please give us a hint,<br>
<br>
<br>
Thanks<br>
<br>
<br>
   Luis<br>
<br>
<br>
----------------------------<br>
anast.jm at pg.com wrote:<br>
<br>
> <br>
> I've built ITK 1.6.0 on MSVC6 (Win2K) with tcl wrapping with no errors <br>
> (build testing/examples turned on), but when I turn on tcl wrapping I <br>
> get the following link errors for Segmentation Examples...any ideas. If <br>
> I turn off examples it builds with no errors. I downloaded and built <br>
> CableSwig-ITK-1.6.0 (with no errors). Am using cmake 1.8p3. I can send <br>
> cmakelist.txt if needed. I didn't get any hits in the FAQ or the <br>
> userlist...thanks, john<br>
> <br>
> p.s. I downloaded the gz files not the zips just to be sure IE didn't <br>
> mess em up...<br>
> <br>
> --------------------Configuration: SegmentationExamples - Win32 <br>
> Release--------------------<br>
> Compiling...<br>
> SegmentationExamples.cxx<br>
> Linking...<br>
>    Creating library P:\AnastDev\Insight <br>
> 160\In160\bin\Release/SegmentationExamples.lib and object </font>
<br><font size=2 face="Courier New">> P:\AnastDev\Insight 160\In160\bin\Release/SegmentationExamples.exp<br>
> --------------------Configuration: SegmentationExamples2 - Win32 <br>
> Release--------------------<br>
> Linking...<br>
> ITKCommon.lib(ITKCommon.dll) : error LNK2005: "public: virtual <br>
> __thiscall itk::ExceptionObject::~ExceptionObject(void)" <br>
> (??1ExceptionObject at itk at  at UAE at XZ) already defined in <br>
> SegmentationExamples2.obj<br>
> ITKCommon.lib(ITKCommon.dll) : error LNK2005: "protected: void <br>
> __thiscall itk::ExceptionObject::UpdateWhat(void)" <br>
> (?UpdateWhat at ExceptionObject at itk at  at IAEXXZ) already defined in <br>
> SegmentationExamples2.obj<br>
> ITKCommon.lib(ITKCommon.dll) : error LNK2005: "public: __thiscall <br>
> itk::ExceptionObject::ExceptionObject(class itk::ExceptionObject const <br>
> &)" (??0ExceptionObject at itk at  at QAE at ABV01 at  at Z) already defined in <br>
> SegmentationExamples2.obj<br>
> ITKCommon.lib(ITKCommon.dll) : error LNK2005: "public: __thiscall <br>
> itk::ExceptionObject::ExceptionObject(char const *,unsigned int,char <br>
> const *,char const *)" (??0ExceptionObject at itk at  at QAE at PBDI00 at Z) already <br>
> defined in SegmentationExamples2.obj<br>
> ITKCommon.lib(ITKCommon.dll) : warning LNK4006: "public: virtual <br>
> __thiscall itk::ExceptionObject::~ExceptionObject(void)" <br>
> (??1ExceptionObject at itk at  at UAE at XZ) already defined in <br>
> SegmentationExamples2.obj; second definition ignored<br>
> ITKCommon.lib(ITKCommon.dll) : warning LNK4006: "protected: void <br>
> __thiscall itk::ExceptionObject::UpdateWhat(void)" <br>
> (?UpdateWhat at ExceptionObject at itk at  at IAEXXZ) already defined in <br>
> SegmentationExamples2.obj; second definition ignored<br>
> ITKCommon.lib(ITKCommon.dll) : warning LNK4006: "public: __thiscall <br>
> itk::ExceptionObject::ExceptionObject(class itk::ExceptionObject const <br>
> &)" (??0ExceptionObject at itk at  at QAE at ABV01 at  at Z) already defined in <br>
> SegmentationExamples2.obj; second definition ign<br>
> ored<br>
> ITKCommon.lib(ITKCommon.dll) : warning LNK4006: "public: __thiscall <br>
> itk::ExceptionObject::ExceptionObject(char const *,unsigned int,char <br>
> const *,char const *)" (??0ExceptionObject at itk at  at QAE at PBDI00 at Z) already <br>
> defined in SegmentationExamples2.obj; seco<br>
> nd definition ignored<br>
>    Creating library P:\AnastDev\Insight <br>
> 160\In160\bin\Release/SegmentationExamples2.lib and object <br>
> P:\AnastDev\Insight 160\In160\bin\Release/SegmentationExamples2.exp<br>
> SegmentationExamples2.obj : error LNK2001: unresolved external symbol <br>
> "public: static float const itk::NumericTraits<float>::Zero" <br>
> (?Zero at ?$NumericTraits at M at itk at  at 2MB)<br>
> SegmentationExamples2.obj : error LNK2001: unresolved external symbol <br>
> "public: static double const itk::NumericTraits<double>::Zero" <br>
> (?Zero at ?$NumericTraits at N at itk at  at 2NB)<br>
> SegmentationExamples2.obj : error LNK2001: unresolved external symbol <br>
> "public: static unsigned char const itk::NumericTraits<unsigned <br>
> char>::Zero" (?Zero at ?$NumericTraits at E at itk at  at 2EB)<br>
> SegmentationExamples2.obj : error LNK2001: unresolved external symbol <br>
> "public: static float const itk::NumericTraits<float>::One" <br>
> (?One at ?$NumericTraits at M at itk at  at 2MB)<br>
> SegmentationExamples2.obj : error LNK2001: unresolved external symbol <br>
> "public: static double const itk::NumericTraits<double>::One" <br>
> (?One at ?$NumericTraits at N at itk at  at 2NB)<br>
> P:\AnastDev\Insight 160\In160\bin\Release/SegmentationExamples2.exe : <br>
> fatal error LNK1120: 5 unresolved externals<br>
> 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_=--