[Insight-users] Compiling error problems with itkvnl.lib

David Milford nanotechc at gmail.com
Thu Oct 23 14:19:50 EDT 2008


Hello

I am having a problem compiling some code. The code is working on other
computers 32bit xp and 64bit xp using visual studios 2005 but I have now
moved to ITK 3,8 and using visual studios 2008 with vista 32bit and no
matter what I do either it is saying that it can't find ITKCommon.dll,
mclib.dll or msvcr90d.dll (but they all exist) or it is giving the following
error:

1>------ Build started: Project: Hxitk, Configuration: Debug Win32 ------
1>Linking...
1>   Creating library .\../../bin/arch-Win32VC7-Debug/Hxitk.lib and object
.\../../bin/arch-Win32VC7-Debug/Hxitk.exp
1>HxITKWatershedU16.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) void __cdecl std::_Debug_message(wchar_t const
*,wchar_t const *,unsigned int)" (__imp_?_Debug_message at std@@YAXPB_W0I at Z)
1>itkvnl.lib(vnl_vector+long-.obj) : error LNK2001: unresolved external
symbol "__declspec(dllimport) void __cdecl std::_Debug_message(wchar_t const
*,wchar_t const *,unsigned int)" (__imp_?_Debug_message at std@@YAXPB_W0I at Z)
1>itkvnl.lib(vnl_matrix+long-.obj) : error LNK2001: unresolved external
symbol "__declspec(dllimport) void __cdecl std::_Debug_message(wchar_t const
*,wchar_t const *,unsigned int)" (__imp_?_Debug_message at std@@YAXPB_W0I at Z)
1>HxITKEdgePreservingFilters.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) void __cdecl std::_Debug_message(wchar_t const
*,wchar_t const *,unsigned int)" (__imp_?_Debug_message at std@@YAXPB_W0I at Z)
referenced in function "public: class itk::Offset<3> const & __thiscall
std::vector<class itk::Offset<3>,class std::allocator<class itk::Offset<3> >
>::operator[](unsigned int)const " (??A?$vector at V?$Offset@$02 at itk
@@V?$allocator at V?$Offset@$02 at itk@@@std@@@std@@QBEABV?$Offset@$02 at itk@@I at Z)
1>HxITKWatershed16.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) void __cdecl std::_Debug_message(wchar_t const
*,wchar_t const *,unsigned int)" (__imp_?_Debug_message at std@@YAXPB_W0I at Z)
1>HxITKWatershed32.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) void __cdecl std::_Debug_message(wchar_t const
*,wchar_t const *,unsigned int)" (__imp_?_Debug_message at std@@YAXPB_W0I at Z)
1>HxITKWatershed8.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) void __cdecl std::_Debug_message(wchar_t const
*,wchar_t const *,unsigned int)" (__imp_?_Debug_message at std@@YAXPB_W0I at Z)
1>HxITKWatershedU16.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
std::_Container_base_secure::_Orphan_all(void)const " (__imp_?_Orphan_all@
_Container_base_secure at std@@QBEXXZ) referenced in function "public:
__thiscall itk::Vector<float,3>::Vector<float,3>(float const * const)"
(??0?$Vector at M$02 at itk@@QAE at QBM@Z)
1>itkvnl.lib(vnl_vector+long-.obj) : error LNK2001: unresolved external
symbol "__declspec(dllimport) public: void __thiscall
std::_Container_base_secure::_Orphan_all(void)const " (__imp_?_Orphan_all@
_Container_base_secure at std@@QBEXXZ)
1>itkvnl.lib(vnl_matrix+long-.obj) : error LNK2001: unresolved external
symbol "__declspec(dllimport) public: void __thiscall
std::_Container_base_secure::_Orphan_all(void)const " (__imp_?_Orphan_all@
_Container_base_secure at std@@QBEXXZ)
1>HxITKEdgePreservingFilters.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
std::_Container_base_secure::_Orphan_all(void)const " (__imp_?_Orphan_all@
_Container_base_secure at std@@QBEXXZ)
1>HxITKWatershed16.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
std::_Container_base_secure::_Orphan_all(void)const " (__imp_?_Orphan_all@
_Container_base_secure at std@@QBEXXZ)
1>HxITKWatershed32.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
std::_Container_base_secure::_Orphan_all(void)const " (__imp_?_Orphan_all@
_Container_base_secure at std@@QBEXXZ)
1>HxITKWatershed8.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
std::_Container_base_secure::_Orphan_all(void)const " (__imp_?_Orphan_all@
_Container_base_secure at std@@QBEXXZ)
1>HxITKWatershedU16.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: __thiscall
std::_Container_base_secure::~_Container_base_secure(void)"
(__imp_??1_Container_base_secure at std@@QAE at XZ)
1>itkvnl.lib(vnl_vector+long-.obj) : error LNK2001: unresolved external
symbol "__declspec(dllimport) public: __thiscall
std::_Container_base_secure::~_Container_base_secure(void)"
(__imp_??1_Container_base_secure at std@@QAE at XZ)
1>itkvnl.lib(vnl_matrix+long-.obj) : error LNK2001: unresolved external
symbol "__declspec(dllimport) public: __thiscall
std::_Container_base_secure::~_Container_base_secure(void)"
(__imp_??1_Container_base_secure at std@@QAE at XZ)
1>HxITKEdgePreservingFilters.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall
std::_Container_base_secure::~_Container_base_secure(void)"
(__imp_??1_Container_base_secure at std@@QAE at XZ) referenced in function
"protected: __thiscall std::_Container_base_aux_alloc_empty<class
std::allocator<class itk::Offset<3> >
>::~_Container_base_aux_alloc_empty<class std::allocator<class
itk::Offset<3> > >(void)" (??1?$_Container_base_aux_alloc_empty at V
?$allocator at V?$Offset@$02 at itk@@@std@@@std@@IAE at XZ)
1>HxITKWatershed16.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: __thiscall
std::_Container_base_secure::~_Container_base_secure(void)"
(__imp_??1_Container_base_secure at std@@QAE at XZ)
1>HxITKWatershed32.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: __thiscall
std::_Container_base_secure::~_Container_base_secure(void)"
(__imp_??1_Container_base_secure at std@@QAE at XZ)
1>HxITKWatershed8.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: __thiscall
std::_Container_base_secure::~_Container_base_secure(void)"
(__imp_??1_Container_base_secure at std@@QAE at XZ)
1>HxITKWatershedU16.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: __thiscall
std::_Container_base_secure::_Container_base_secure(void)"
(__imp_??0_Container_base_secure at std@@QAE at XZ)
1>itkvnl.lib(vnl_vector+long-.obj) : error LNK2001: unresolved external
symbol "__declspec(dllimport) public: __thiscall
std::_Container_base_secure::_Container_base_secure(void)"
(__imp_??0_Container_base_secure at std@@QAE at XZ)
1>itkvnl.lib(vnl_matrix+long-.obj) : error LNK2001: unresolved external
symbol "__declspec(dllimport) public: __thiscall
std::_Container_base_secure::_Container_base_secure(void)"
(__imp_??0_Container_base_secure at std@@QAE at XZ)
1>HxITKEdgePreservingFilters.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall
std::_Container_base_secure::_Container_base_secure(void)"
(__imp_??0_Container_base_secure at std@@QAE at XZ) referenced in function
"protected: __thiscall std::_Container_base_aux_alloc_empty<class
std::allocator<double> >::_Container_base_aux_alloc_empty<class
std::allocator<double> >(class std::allocator<double>)"
(??0?$_Container_base_aux_alloc_empty at V?$allocator at N@std@@@std@@IAE at V
?$allocator at N@1@@Z)
1>HxITKWatershed16.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: __thiscall
std::_Container_base_secure::_Container_base_secure(void)"
(__imp_??0_Container_base_secure at std@@QAE at XZ)
1>HxITKWatershed32.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: __thiscall
std::_Container_base_secure::_Container_base_secure(void)"
(__imp_??0_Container_base_secure at std@@QAE at XZ)
1>HxITKWatershed8.obj : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: __thiscall
std::_Container_base_secure::_Container_base_secure(void)"
(__imp_??0_Container_base_secure at std@@QAE at XZ)
1>../../bin/arch-Win32VC7-Debug/Hxitk.dll : fatal error LNK1120: 4
unresolved externals
1>Build log was saved at
"file://c:\Users\David\Amira_Local\obj\arch-Win32VC7-Debug\Hxitk\BuildLog.htm"
1>Hxitk - 29 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I have added itkvnl.lib and included the path.

Any help would be greatly appreciated.

Thanks

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20081023/01f98648/attachment-0001.htm>


More information about the Insight-users mailing list