[Insight-users] FW: Building Error For ITK ver. 2.6.0

Luis Ibanez luis.ibanez at kitware.com
Sun Sep 3 13:54:41 EDT 2006


Hi Cem,

Thanks for let us know that you found the solution
to your problem.


Why was VXL built with VS2003 ?


    Were you using VXL as system libraries ?

    or

   Did you attempted to reuse a binary directory of
   ITK that was built with VS2003 when you started
   your build with VS2005 ?


   Regards,



      Luis


------------------------
Cem DEMiRKIR wrote:
> Hi Luis,
> 	Thanks for your interest in my problem. I've found out the reason of
> the problem. Since the ITK used the VXL libraries and they were built by
> VS2003, it produces these kind of errors. I've built the VXl using VS2005
> and the problem is fixed.
> 
> 	Sincerely
> 	Cem DEMiRKIR
> 
> -----Original Message-----
> From: Luis Ibanez [mailto:luis.ibanez at kitware.com] 
> Sent: Sunday, September 03, 2006 4:37 PM
> To: Cem DEMiRKIR
> Cc: insight-users at itk.org
> Subject: Re: [Insight-users] FW: Building Error For ITK ver. 2.6.0
> 
> 
> Hi Cem,
> 
> 
>       ITK 2.6 has been built with VS 2005.
> 
> 
> Please look at the following emails from the archives (May 2006)
> 
> http://public.kitware.com/pipermail/insight-users/2006-May/017997.html
> http://public.kitware.com/pipermail/insight-users/2006-May/018061.html
> 
> 
> It is likely that have not installed all the elements that VS 2005 needs.
> 
> 
> 
> Regards
> 
> 
>     Luis
> 
> 
> 
> -------------------
> Cem DEMiRKIR wrote:
> 
>>Dear ITK Members,
>>    I built ITK ver. 2.6.0 by creating a solution for VS 2005. When I 
>>started the building process I got the following
>> 
>>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class 
>>std::basic_ostream<char,struct std::char_traits<char> > & __cdecl 
>>std::operator<<<char,struct std::char_traits<char>,class 
>>std::allocator<char> >(class std::basic_ostream<char,struct 
>>std::char_traits<char> > &,class std::basic_string<char,struct 
>>std::char_traits<char>,class std::allocator<char> > const &)"
>>(??$?6DU?$char_traits at D@std@@V?$allocator at D@1@@std@@YAAAV?$basic_ostre
>>am at DU?$char_traits at D@std@@@0 at AAV10@ABV?$basic_string at DU?$char_traits at D
>>@std@@V?$allocator at D@2@@0@@Z) already defined in 
>>vnl_algo.lib(vnl_symmetric_eigensystem.obj)
>> 
>>error messages for the projects in the solution as given the 
>>attachment txt file, and I also got the same error messages for the 
>>test examples of ITK library. Can anyone help me resolving this problem ?
>>
>>    Sincerely
>>
>>    Cem DEMİRKIR
>>
>> 
>>
>>
>>----------------------------------------------------------------------
>>--
>>
>>------ Build started: Project: ImageExamples, Configuration: Release 
>>Win32 ------ Linking...
>>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class 
>>std::basic_ostream<char,struct std::char_traits<char> > & __cdecl 
>>std::operator<<<char,struct std::char_traits<char>,class 
>>std::allocator<char> >(class std::basic_ostream<char,struct 
>>std::char_traits<char> > &,class std::basic_string<char,struct 
>>std::char_traits<char>,class std::allocator<char> > const &)" 
>>(??$?6DU?$char_traits at D@std@@V?$allocator at D@1@@std@@YAAAV?$basic_ostre
>>am at DU?$char_traits at D@std@@@0 at AAV10@ABV?$basic_string at DU?$char_traits at D
>>@std@@V?$allocator at D@2@@0@@Z) already defined in 
>>vnl.lib(vnl_vector+double-.obj)
>>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class 
>>std::basic_string<char,struct std::char_traits<char>,class 
>>std::allocator<char> > __cdecl std::operator+<char,struct 
>>std::char_traits<char>,class std::allocator<char> >(class 
>>std::basic_string<char,struct std::char_traits<char>,class 
>>std::allocator<char> > const &,char const *)" 
>>(??$?HDU?$char_traits at D@std@@V?$allocator at D@1@@std@@YA?AV?$basic_strin
>>g at DU?$char_traits at D@std@@V?$allocator at D@2@@0 at ABV10@PBD at Z) already 
>>defined in vnl.lib(vnl_vector+double-.obj)
>>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class 
>>std::basic_string<char,struct std::char_traits<char>,class 
>>std::allocator<char> > __cdecl std::operator+<char,struct 
>>std::char_traits<char>,class std::allocator<char> >(class 
>>std::basic_string<char,struct std::char_traits<char>,class 
>>std::allocator<char> > const &,class std::basic_string<char,struct 
>>std::char_traits<char>,class std::allocator<char> > const &)" 
>>(??$?HDU?$char_traits at D@std@@V?$allocator at D@1@@std@@YA?AV?$basic_strin
>>g at DU?$char_traits at D@std@@V?$allocator at D@2@@0 at ABV10@0 at Z) already 
>>defined in vnl.lib(vnl_vector+double-.obj)
>>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class 
>>std::basic_string<char,struct std::char_traits<char>,class 
>>std::allocator<char> > __cdecl std::operator+<char,struct 
>>std::char_traits<char>,class std::allocator<char> >(char const *,class 
>>std::basic_string<char,struct std::char_traits<char>,class 
>>std::allocator<char> > const &)" 
>>(??$?HDU?$char_traits at D@std@@V?$allocator at D@1@@std@@YA?AV?$basic_strin
>>g at DU?$char_traits at D@std@@V?$allocator at D@2@@0 at PBDABV10@@Z) already 
>>defined in vnl.lib(vnl_vector+double-.obj)
>>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class 
>>std::basic_istream<char,struct std::char_traits<char> > & __cdecl 
>>std::getline<char,struct std::char_traits<char>,class 
>>std::allocator<char> >(class std::basic_istream<char,struct 
>>std::char_traits<char> > &,class std::basic_string<char,struct 
>>std::char_traits<char>,class std::allocator<char> > &)" 
>>(??$getline at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@YAAAV?$basic
>>_istream at DU?$char_traits at D@std@@@0 at AAV10@AAV?$basic_string at DU?$char_tr
>>aits at D@std@@V?$allocator at D@2@@0@@Z) already defined in 
>>vnl.lib(vnl_vector+double-.obj)
>>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class 
>>std::basic_istream<char,struct std::char_traits<char> > & __cdecl 
>>std::operator>><char,struct std::char_traits<char>,class 
>>std::allocator<char> >(class std::basic_istream<char,struct 
>>std::char_traits<char> > &,class std::basic_string<char,struct 
>>std::char_traits<char>,class std::allocator<char> > &)" 
>>(??$?5DU?$char_traits at D@std@@V?$allocator at D@1@@std@@YAAAV?$basic_istre
>>am at DU?$char_traits at D@std@@@0 at AAV10@AAV?$basic_string at DU?$char_traits at D
>>@std@@V?$allocator at D@2@@0@@Z) already defined in 
>>vnl.lib(vnl_vector+double-.obj)
>>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class 
>>std::basic_string<char,struct std::char_traits<char>,class 
>>std::allocator<char> > __cdecl std::operator+<char,struct 
>>std::char_traits<char>,class std::allocator<char> >(class 
>>std::basic_string<char,struct std::char_traits<char>,class 
>>std::allocator<char> > const &,char)" 
>>(??$?HDU?$char_traits at D@std@@V?$allocator at D@1@@std@@YA?AV?$basic_strin
>>g at DU?$char_traits at D@std@@V?$allocator at D@2@@0 at ABV10@D at Z) already 
>>defined in vnl.lib(vnl_vector+double-.obj)
>>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class 
>>std::basic_ostream<char,struct std::char_traits<char> > & __cdecl 
>>std::operator<<<struct std::char_traits<char> >(class 
>>std::basic_ostream<char,struct std::char_traits<char> > &,char)" 
>>(??$?6U?$char_traits at D@std@@@std@@YAAAV?$basic_ostream at DU?$char_traits
>>@D at std@@@0 at AAV10@D at Z) already defined in ImageExamples.obj
>>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class
> 
> std::basic_ostream<char,struct std::char_traits<char> > & __cdecl
> std::operator<<<struct std::char_traits<char> >(class
> std::basic_ostream<char,struct std::char_traits<char> > &,char const *)"
> (??$?6U?$char_traits at D@std@@@std@@YAAAV?$basic_ostream at DU?$char_traits at D@std
> @@@0 at AAV10@PBD at Z) already defined in ImageExamples.obj
> 
>>   Creating library 
>>G:\Work\Cpp\Libs\InsightToolkit-2.6.0\bin\bin\Release\ImageExamples.li
>>b and object 
>>G:\Work\Cpp\Libs\InsightToolkit-2.6.0\bin\bin\Release\ImageExamples.ex
>>p 
>>G:\Work\Cpp\Libs\InsightToolkit-2.6.0\bin\bin\Release\ImageExamples.ex
>>e : fatal error LNK1169: one or more multiply defined symbols found Build
> 
> log was saved at
> "file://g:\Work\Cpp\Libs\InsightToolkit-2.6.0\bin\Examples\DataRepresentatio
> n\Image\ImageExamples.dir\Release\BuildLog.htm"
> 
>>ImageExamples - 10 error(s), 0 warning(s)
>>------ Build started: Project: ImageAdaptor4, Configuration: Release 
>>Win32 ------ Linking...
>>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class 
>>std::basic_ostream<char,struct std::char_traits<char> > & __cdecl 
>>std::operator<<<char,struct std::char_traits<char>,class 
>>std::allocator<char> >(class std::basic_ostream<char,struct 
>>std::char_traits<char> > &,class std::basic_string<char,struct 
>>std::char_traits<char>,class std::allocator<char> > const &)" 
>>(??$?6DU?$char_traits at D@std@@V?$allocator at D@1@@std@@YAAAV?$basic_ostre
>>am at DU?$char_traits at D@std@@@0 at AAV10@ABV?$basic_string at DU?$char_traits at D
>>@std@@V?$allocator at D@2@@0@@Z) already defined in 
>>vnl.lib(vnl_vector+double-.obj)
>>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class 
>>std::basic_string<char,struct std::char_traits<char>,class 
>>std::allocator<char> > __cdecl std::operator+<char,struct 
>>std::char_traits<char>,class std::allocator<char> >(class 
>>std::basic_string<char,struct std::char_traits<char>,class 
>>std::allocator<char> > const &,char const *)" 
>>(??$?HDU?$char_traits at D@std@@V?$allocator at D@1@@std@@YA?AV?$basic_strin
>>g at DU?$char_traits at D@std@@V?$allocator at D@2@@0 at ABV10@PBD at Z) already 
>>defined in vnl.lib(vnl_vector+double-.obj)
>>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class 
>>std::basic_string<char,struct std::char_traits<char>,class 
>>std::allocator<char> > __cdecl std::operator+<char,struct 
>>std::char_traits<char>,class std::allocator<char> >(class 
>>std::basic_string<char,struct std::char_traits<char>,class 
>>std::allocator<char> > const &,class std::basic_string<char,struct 
>>std::char_traits<char>,class std::allocator<char> > const &)" 
>>(??$?HDU?$char_traits at D@std@@V?$allocator at D@1@@std@@YA?AV?$basic_strin
>>g at DU?$char_traits at D@std@@V?$allocator at D@2@@0 at ABV10@0 at Z) already 
>>defined in vnl.lib(vnl_vector+double-.obj)
>>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class 
>>std::basic_string<char,struct std::char_traits<char>,class 
>>std::allocator<char> > __cdecl std::operator+<char,struct 
>>std::char_traits<char>,class std::allocator<char> >(char const *,class 
>>std::basic_string<char,struct std::char_traits<char>,class 
>>std::allocator<char> > const &)" 
>>(??$?HDU?$char_traits at D@std@@V?$allocator at D@1@@std@@YA?AV?$basic_strin
>>g at DU?$char_traits at D@std@@V?$allocator at D@2@@0 at PBDABV10@@Z) already 
>>defined in vnl.lib(vnl_vector+double-.obj)
>>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class 
>>std::basic_istream<char,struct std::char_traits<char> > & __cdecl 
>>std::getline<char,struct std::char_traits<char>,class 
>>std::allocator<char> >(class std::basic_istream<char,struct 
>>std::char_traits<char> > &,class std::basic_string<char,struct 
>>std::char_traits<char>,class std::allocator<char> > &)" 
>>(??$getline at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@YAAAV?$basic
>>_istream at DU?$char_traits at D@std@@@0 at AAV10@AAV?$basic_string at DU?$char_tr
>>aits at D@std@@V?$allocator at D@2@@0@@Z) already defined in 
>>vnl.lib(vnl_vector+double-.obj)
>>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class 
>>std::basic_istream<char,struct std::char_traits<char> > & __cdecl 
>>std::operator>><char,struct std::char_traits<char>,class 
>>std::allocator<char> >(class std::basic_istream<char,struct 
>>std::char_traits<char> > &,class std::basic_string<char,struct 
>>std::char_traits<char>,class std::allocator<char> > &)" 
>>(??$?5DU?$char_traits at D@std@@V?$allocator at D@1@@std@@YAAAV?$basic_istre
>>am at DU?$char_traits at D@std@@@0 at AAV10@AAV?$basic_string at DU?$char_traits at D
>>@std@@V?$allocator at D@2@@0@@Z) already defined in 
>>vnl.lib(vnl_vector+double-.obj)
>>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class 
>>std::basic_string<char,struct std::char_traits<char>,class 
>>std::allocator<char> > __cdecl std::operator+<char,struct 
>>std::char_traits<char>,class std::allocator<char> >(class 
>>std::basic_string<char,struct std::char_traits<char>,class 
>>std::allocator<char> > const &,char)" 
>>(??$?HDU?$char_traits at D@std@@V?$allocator at D@1@@std@@YA?AV?$basic_strin
>>g at DU?$char_traits at D@std@@V?$allocator at D@2@@0 at ABV10@D at Z) already 
>>defined in vnl.lib(vnl_vector+double-.obj)
>>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class 
>>std::basic_ostream<char,struct std::char_traits<char> > & __cdecl 
>>std::operator<<<struct std::char_traits<char> >(class 
>>std::basic_ostream<char,struct std::char_traits<char> > &,char)" 
>>(??$?6U?$char_traits at D@std@@@std@@YAAAV?$basic_ostream at DU?$char_traits
>>@D at std@@@0 at AAV10@D at Z) already defined in ImageAdaptor4.obj
>>msvcprt.lib(MSVCP80.dll) : error LNK2005: "class
> 
> std::basic_ostream<char,struct std::char_traits<char> > & __cdecl
> std::operator<<<struct std::char_traits<char> >(class
> std::basic_ostream<char,struct std::char_traits<char> > &,char const *)"
> (??$?6U?$char_traits at D@std@@@std@@YAAAV?$basic_ostream at DU?$char_traits at D@std
> @@@0 at AAV10@PBD at Z) already defined in ImageAdaptor4.obj
> 
>>   Creating library 
>>G:\Work\Cpp\Libs\InsightToolkit-2.6.0\bin\bin\Release\ImageAdaptor4.li
>>b and object 
>>G:\Work\Cpp\Libs\InsightToolkit-2.6.0\bin\bin\Release\ImageAdaptor4.ex
>>p 
>>G:\Work\Cpp\Libs\InsightToolkit-2.6.0\bin\bin\Release\ImageAdaptor4.ex
>>e : fatal error LNK1169: one or more multiply defined symbols found Build
> 
> log was saved at
> "file://g:\Work\Cpp\Libs\InsightToolkit-2.6.0\bin\Examples\DataRepresentatio
> n\Image\ImageAdaptor4.dir\Release\BuildLog.htm"
> 
>>ImageAdaptor4 - 10 error(s), 0 warning(s)
>>
>>The build has been canceled at the user's request
>>
>>
>>
>>----------------------------------------------------------------------
>>--
>>
>>_______________________________________________
>>Insight-users mailing list
>>Insight-users at itk.org
>>http://www.itk.org/mailman/listinfo/insight-users
> 
> 
> 
> 
> 




More information about the Insight-users mailing list