[Insight-users] Linking problems

Luis Ibanez luis.ibanez at kitware.com
Mon, 02 Feb 2004 14:09:55 -0500


Hi Julien,

Can you please post the CMakeLists.txt file
of the project from which you are trying to
use ITK ?

Also, if you can generate this error with
a minimal piece of code and post it to the list,
that will be a great help.

Are you sure that you are not mixing a Debug
build of ITK with a Release build of your
application ? (or the other way around...)


Regards,


    Luis


----------------------
Julien Hamaide wrote:

> When I try to call the 
> BinaryBallStructuringElement::CreateStructuringElement(), I got linking 
> error. I tried to put fstream at first, but it don’t work much. I’m 
> using VS.NET 2002
> 
>  
> 
> The error are listed here :
> 
>  
> 
> itkvnl.lib(vnl_matrix_fixed+double.3.3-.obj) : error LNK2019: unresolved 
> external symbol "__declspec(dllimport) public: bool __thiscall 
> std::ios_base::eof(void)const " (__imp_?eof at ios_base at std at  at QBE_NXZ) 
> referenced in function "public: bool __thiscall 
> vnl_matrix_fixed<double,3,3>::read_ascii(class 
> std::basic_istream<char,struct std::char_traits<char> > &)" 
> (?read_ascii at ?$vnl_matrix_fixed at N$02$02 at  at QAE_NAAV?$basic_istream at DU?$char_traits at D at std at  at  at std at  at  at Z)
> 
> itkvnl.lib(vnl_matrix+double-.obj) : error LNK2001: unresolved external 
> symbol "__declspec(dllimport) public: bool __thiscall 
> std::ios_base::eof(void)const " (__imp_?eof at ios_base at std at  at QBE_NXZ)
> 
> itkvnl.lib(vnl_vector+double-.obj) : error LNK2001: unresolved external 
> symbol "__declspec(dllimport) public: bool __thiscall 
> std::ios_base::eof(void)const " (__imp_?eof at ios_base at std at  at QBE_NXZ)
> 
> itkvnl.lib(vnl_matrix_fixed+double.3.3-.obj) : error LNK2019: unresolved 
> external symbol "__declspec(dllimport) public: class 
> std::basic_istream<char,struct std::char_traits<char> > & __thiscall 
> std::basic_istream<char,struct std::char_traits<char> 
>  >::operator>>(double &)" 
> (__imp_??5?$basic_istream at DU?$char_traits at D at std at  at  at std at  at QAEAAV01 at AAN at Z) 
> referenced in function "public: bool __thiscall 
> vnl_matrix_fixed<double,3,3>::read_ascii(class 
> std::basic_istream<char,struct std::char_traits<char> > &)" 
> (?read_ascii at ?$vnl_matrix_fixed at N$02$02 at  at QAE_NAAV?$basic_istream at DU?$char_traits at D at std at  at  at std at  at  at Z)
> 
> itkvnl.lib(vnl_matrix+double-.obj) : error LNK2001: unresolved external 
> symbol "__declspec(dllimport) public: class 
> std::basic_istream<char,struct std::char_traits<char> > & __thiscall 
> std::basic_istream<char,struct std::char_traits<char> 
>  >::operator>>(double &)" 
> (__imp_??5?$basic_istream at DU?$char_traits at D at std at  at  at std at  at QAEAAV01 at AAN at Z)
> 
> itkvnl.lib(vnl_vector+double-.obj) : error LNK2001: unresolved external 
> symbol "__declspec(dllimport) public: class 
> std::basic_istream<char,struct std::char_traits<char> > & __thiscall 
> std::basic_istream<char,struct std::char_traits<char> 
>  >::operator>>(double &)" 
> (__imp_??5?$basic_istream at DU?$char_traits at D at std at  at  at std at  at QAEAAV01 at AAN at Z)
> 
> itkvnl.lib(vnl_matrix_fixed+double.3.3-.obj) : error LNK2001: unresolved 
> external symbol "__declspec(dllimport) class 
> std::basic_ostream<char,struct std::char_traits<char> > std::cerr" 
> (__imp_?cerr at std at  at 3V?$basic_ostream at DU?$char_traits at D at std at  at  at 1 at A)
> 
> itkvnl.lib(vnl_matrix+double-.obj) : error LNK2001: unresolved external 
> symbol "__declspec(dllimport) class std::basic_ostream<char,struct 
> std::char_traits<char> > std::cerr" 
> (__imp_?cerr at std at  at 3V?$basic_ostream at DU?$char_traits at D at std at  at  at 1 at A)
> 
> itkvnl.lib(vnl_vector+double-.obj) : error LNK2001: unresolved external 
> symbol "__declspec(dllimport) class std::basic_ostream<char,struct 
> std::char_traits<char> > std::cerr" 
> (__imp_?cerr at std at  at 3V?$basic_ostream at DU?$char_traits at D at std at  at  at 1 at A)
> 
> itkvnl.lib(vnl_matrix_fixed+double.3.3-.obj) : error LNK2019: unresolved 
> external symbol "__declspec(dllimport) class 
> std::basic_ostream<char,struct std::char_traits<char> > & __cdecl 
> std::operator<<(class std::basic_ostream<char,struct 
> std::char_traits<char> > &,char)" 
> (__imp_??6std at  at YAAAV?$basic_ostream at DU?$char_traits at D at std at  at  at 0 at AAV10 at D at Z) 
> referenced in function "public: void __thiscall 
> vnl_matrix_fixed<double,3,3>::print(class std::basic_ostream<char,struct 
> std::char_traits<char> > &)const " 
> (?print at ?$vnl_matrix_fixed at N$02$02 at  at QBEXAAV?$basic_ostream at DU?$char_traits at D at std at  at  at std at  at  at Z)
> 
> itkvnl.lib(vnl_c_vector+double-.obj) : error LNK2001: unresolved 
> external symbol "__declspec(dllimport) class 
> std::basic_ostream<char,struct std::char_traits<char> > & __cdecl 
> std::operator<<(class std::basic_ostream<char,struct 
> std::char_traits<char> > &,char)" 
> (__imp_??6std at  at YAAAV?$basic_ostream at DU?$char_traits at D at std at  at  at 0 at AAV10 at D at Z)
> 
> itkvnl.lib(vnl_matrix+double-.obj) : error LNK2001: unresolved external 
> symbol "__declspec(dllimport) class std::basic_ostream<char,struct 
> std::char_traits<char> > & __cdecl std::operator<<(class 
> std::basic_ostream<char,struct std::char_traits<char> > &,char)" 
> (__imp_??6std at  at YAAAV?$basic_ostream at DU?$char_traits at D at std at  at  at 0 at AAV10 at D at Z)
> 
> itkvnl.lib(vnl_vector+double-.obj) : error LNK2001: unresolved external 
> symbol "__declspec(dllimport) class std::basic_ostream<char,struct 
> std::char_traits<char> > & __cdecl std::operator<<(class 
> std::basic_ostream<char,struct std::char_traits<char> > &,char)" 
> (__imp_??6std at  at YAAAV?$basic_ostream at DU?$char_traits at D at std at  at  at 0 at AAV10 at D at Z)
> 
> itkvnl.lib(vnl_matrix+double-.obj) : error LNK2019: unresolved external 
> symbol "__declspec(dllimport) public: class 
> std::basic_istream<char,struct std::char_traits<char> > & __thiscall 
> std::basic_istream<char,struct std::char_traits<char> >::putback(char)" 
> (__imp_?putback at ?$basic_istream at DU?$char_traits at D at std at  at  at std at  at QAEAAV12 at D at Z) 
> referenced in function "public: bool __thiscall 
> vnl_matrix<double>::read_ascii(class std::basic_istream<char,struct 
> std::char_traits<char> > &)" 
> (?read_ascii at ?$vnl_matrix at N at  at QAE_NAAV?$basic_istream at DU?$char_traits at D at std at  at  at std at  at  at Z)
> 
> itkvnl.lib(vnl_matrix+double-.obj) : error LNK2019: unresolved external 
> symbol "__declspec(dllimport) public: int __thiscall 
> std::basic_istream<char,struct std::char_traits<char> >::get(void)" 
> (__imp_?get at ?$basic_istream at DU?$char_traits at D at std at  at  at std at  at QAEHXZ) 
> referenced in function "public: bool __thiscall 
> vnl_matrix<double>::read_ascii(class std::basic_istream<char,struct 
> std::char_traits<char> > &)" 
> (?read_ascii at ?$vnl_matrix at N at  at QAE_NAAV?$basic_istream at DU?$char_traits at D at std at  at  at std at  at  at Z)
> 
> itkvnl.lib(vnl_math.obj) : error LNK2001: unresolved external symbol 
> __imp___HUGE
> 
> itkvcl.lib(vcl_cassert.obj) : error LNK2019: unresolved external symbol 
> __imp__fprintf referenced in function "void __cdecl 
> vcl_cassert_failure(char const *,int,char const *)" 
> (?vcl_cassert_failure at  at YAXPBDH0 at Z)
> 
>  
> 
>  
> 
> Thanks
> 
>  
> 
> Julien Hamaide
> 
>  
> 
> Tcts Lab - Multitel Asbl.
> 
> Faculte Polytechnique de Mons
> 
> Parc Initialis - Avenue Nicolas Copernic,1
> 
> 7000 - Mons
> 
> Belgium
> 
> http://tcts.fpms.ac.be
> 
>  
> 
> tel +32 65 37 47 43
> 
> email : julien.hamaide at tcts.fpms.ac.be
> 
>  
>