TR : [Insight-users] Linking problems
Julien Hamaide
julien.hamaide at tcts.fpms.ac.be
Wed, 4 Feb 2004 08:49:00 +0100
I finally realize that I must use CMake (I was making the project myself
by hand). So I took the CMake manual and create a CMakeList.txt.
I've seen that there's a lot of project's parameters that are different
from mine. I fix it and now it all works.=20
Thank you
Julien Hamaide
=20
Tcts Lab - Multitel Asbl.
Faculte Polytechnique de Mons=20
Parc Initialis - Avenue Nicolas Copernic,1=20
7000 - Mons=20
Belgium=20
http://tcts.fpms.ac.be
=20
tel +32 65 37 47 43
email : julien.hamaide at tcts.fpms.ac.be=20
-----Message d'origine-----
De=A0: Luis Ibanez [mailto:luis.ibanez at kitware.com]=20
Envoy=E9=A0: lundi 2 f=E9vrier 2004 20:10
=C0=A0: Julien Hamaide
Cc=A0: insight-users at itk.org
Objet=A0: Re: [Insight-users] Linking problems
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=20
> BinaryBallStructuringElement::CreateStructuringElement(), I got
linking=20
> error. I tried to put fstream at first, but it don=92t work much. =
I=92m=20
> using VS.NET 2002
>=20
> =20
>=20
> The error are listed here :
>=20
> =20
>=20
> itkvnl.lib(vnl_matrix_fixed+double.3.3-.obj) : error LNK2019:
unresolved=20
> external symbol "__declspec(dllimport) public: bool __thiscall=20
> std::ios_base::eof(void)const " (__imp_?eof at ios_base at std at at QBE_NXZ)=20
> referenced in function "public: bool __thiscall=20
> vnl_matrix_fixed<double,3,3>::read_ascii(class=20
> std::basic_istream<char,struct std::char_traits<char> > &)"=20
>
(?read_ascii at ?$vnl_matrix_fixed at N$02$02 at at QAE_NAAV?$basic_istream at DU?$cha
r_traits at D at std at at at std at at at Z)
>=20
> itkvnl.lib(vnl_matrix+double-.obj) : error LNK2001: unresolved
external=20
> symbol "__declspec(dllimport) public: bool __thiscall=20
> std::ios_base::eof(void)const " (__imp_?eof at ios_base at std at at QBE_NXZ)
>=20
> itkvnl.lib(vnl_vector+double-.obj) : error LNK2001: unresolved
external=20
> symbol "__declspec(dllimport) public: bool __thiscall=20
> std::ios_base::eof(void)const " (__imp_?eof at ios_base at std at at QBE_NXZ)
>=20
> itkvnl.lib(vnl_matrix_fixed+double.3.3-.obj) : error LNK2019:
unresolved=20
> external symbol "__declspec(dllimport) public: class=20
> std::basic_istream<char,struct std::char_traits<char> > & __thiscall=20
> std::basic_istream<char,struct std::char_traits<char>=20
> >::operator>>(double &)"=20
> (__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=20
> vnl_matrix_fixed<double,3,3>::read_ascii(class=20
> std::basic_istream<char,struct std::char_traits<char> > &)"=20
>
(?read_ascii at ?$vnl_matrix_fixed at N$02$02 at at QAE_NAAV?$basic_istream at DU?$cha
r_traits at D at std at at at std at at at Z)
>=20
> itkvnl.lib(vnl_matrix+double-.obj) : error LNK2001: unresolved
external=20
> symbol "__declspec(dllimport) public: class=20
> std::basic_istream<char,struct std::char_traits<char> > & __thiscall=20
> std::basic_istream<char,struct std::char_traits<char>=20
> >::operator>>(double &)"=20
> (__imp_??5?$basic_istream at DU?$char_traits at D at std at at at std at at QAEAAV01 at AAN at Z)
>=20
> itkvnl.lib(vnl_vector+double-.obj) : error LNK2001: unresolved
external=20
> symbol "__declspec(dllimport) public: class=20
> std::basic_istream<char,struct std::char_traits<char> > & __thiscall=20
> std::basic_istream<char,struct std::char_traits<char>=20
> >::operator>>(double &)"=20
> (__imp_??5?$basic_istream at DU?$char_traits at D at std at at at std at at QAEAAV01 at AAN at Z)
>=20
> itkvnl.lib(vnl_matrix_fixed+double.3.3-.obj) : error LNK2001:
unresolved=20
> external symbol "__declspec(dllimport) class=20
> std::basic_ostream<char,struct std::char_traits<char> > std::cerr"=20
> (__imp_?cerr at std at at 3V?$basic_ostream at DU?$char_traits at D at std at at at 1 at A)
>=20
> itkvnl.lib(vnl_matrix+double-.obj) : error LNK2001: unresolved
external=20
> symbol "__declspec(dllimport) class std::basic_ostream<char,struct=20
> std::char_traits<char> > std::cerr"=20
> (__imp_?cerr at std at at 3V?$basic_ostream at DU?$char_traits at D at std at at at 1 at A)
>=20
> itkvnl.lib(vnl_vector+double-.obj) : error LNK2001: unresolved
external=20
> symbol "__declspec(dllimport) class std::basic_ostream<char,struct=20
> std::char_traits<char> > std::cerr"=20
> (__imp_?cerr at std at at 3V?$basic_ostream at DU?$char_traits at D at std at at at 1 at A)
>=20
> itkvnl.lib(vnl_matrix_fixed+double.3.3-.obj) : error LNK2019:
unresolved=20
> external symbol "__declspec(dllimport) class=20
> std::basic_ostream<char,struct std::char_traits<char> > & __cdecl=20
> std::operator<<(class std::basic_ostream<char,struct=20
> std::char_traits<char> > &,char)"=20
>
(__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=20
> vnl_matrix_fixed<double,3,3>::print(class
std::basic_ostream<char,struct=20
> std::char_traits<char> > &)const "=20
>
(?print at ?$vnl_matrix_fixed at N$02$02 at at QBEXAAV?$basic_ostream at DU?$char_trai
ts at D at std at at at std at at at Z)
>=20
> itkvnl.lib(vnl_c_vector+double-.obj) : error LNK2001: unresolved=20
> external symbol "__declspec(dllimport) class=20
> std::basic_ostream<char,struct std::char_traits<char> > & __cdecl=20
> std::operator<<(class std::basic_ostream<char,struct=20
> std::char_traits<char> > &,char)"=20
>
(__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)
>=20
> itkvnl.lib(vnl_matrix+double-.obj) : error LNK2001: unresolved
external=20
> symbol "__declspec(dllimport) class std::basic_ostream<char,struct=20
> std::char_traits<char> > & __cdecl std::operator<<(class=20
> std::basic_ostream<char,struct std::char_traits<char> > &,char)"=20
>
(__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)
>=20
> itkvnl.lib(vnl_vector+double-.obj) : error LNK2001: unresolved
external=20
> symbol "__declspec(dllimport) class std::basic_ostream<char,struct=20
> std::char_traits<char> > & __cdecl std::operator<<(class=20
> std::basic_ostream<char,struct std::char_traits<char> > &,char)"=20
>
(__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)
>=20
> itkvnl.lib(vnl_matrix+double-.obj) : error LNK2019: unresolved
external=20
> symbol "__declspec(dllimport) public: class=20
> std::basic_istream<char,struct std::char_traits<char> > & __thiscall=20
> std::basic_istream<char,struct std::char_traits<char>
>::putback(char)"=20
>
(__imp_?putback at ?$basic_istream at DU?$char_traits at D at std at at at std at at QAEAAV12 at D at
Z)=20
> referenced in function "public: bool __thiscall=20
> vnl_matrix<double>::read_ascii(class std::basic_istream<char,struct=20
> std::char_traits<char> > &)"=20
>
(?read_ascii at ?$vnl_matrix at N at at QAE_NAAV?$basic_istream at DU?$char_traits at D at s
td at at at std at at at Z)
>=20
> itkvnl.lib(vnl_matrix+double-.obj) : error LNK2019: unresolved
external=20
> symbol "__declspec(dllimport) public: int __thiscall=20
> std::basic_istream<char,struct std::char_traits<char> >::get(void)"=20
> (__imp_?get at ?$basic_istream at DU?$char_traits at D at std at at at std at at QAEHXZ)=20
> referenced in function "public: bool __thiscall=20
> vnl_matrix<double>::read_ascii(class std::basic_istream<char,struct=20
> std::char_traits<char> > &)"=20
>
(?read_ascii at ?$vnl_matrix at N at at QAE_NAAV?$basic_istream at DU?$char_traits at D at s
td at at at std at at at Z)
>=20
> itkvnl.lib(vnl_math.obj) : error LNK2001: unresolved external symbol=20
> __imp___HUGE
>=20
> itkvcl.lib(vcl_cassert.obj) : error LNK2019: unresolved external
symbol=20
> __imp__fprintf referenced in function "void __cdecl=20
> vcl_cassert_failure(char const *,int,char const *)"=20
> (?vcl_cassert_failure at at YAXPBDH0 at Z)
>=20
> =20
>=20
> =20
>=20
> Thanks
>=20
> =20
>=20
> Julien Hamaide
>=20
> =20
>=20
> Tcts Lab - Multitel Asbl.
>=20
> Faculte Polytechnique de Mons
>=20
> Parc Initialis - Avenue Nicolas Copernic,1
>=20
> 7000 - Mons
>=20
> Belgium
>=20
> http://tcts.fpms.ac.be
>=20
> =20
>=20
> tel +32 65 37 47 43
>=20
> email : julien.hamaide at tcts.fpms.ac.be
>=20
> =20
>=20