Hello <br><br>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:<br>
<br>1>------ Build started: Project: Hxitk, Configuration: Debug Win32 ------<br>1>Linking...<br>1> Creating library .\../../bin/arch-Win32VC7-Debug/Hxitk.lib and object .\../../bin/arch-Win32VC7-Debug/Hxitk.exp<br>
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@std@@YAXPB_W0I@Z)<br>
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@std@@YAXPB_W0I@Z)<br>
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@std@@YAXPB_W0I@Z)<br>
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@std@@YAXPB_W0I@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@V?$Offset@$02@itk@@V?$allocator@V?$Offset@$02@itk@@@std@@@std@@QBEABV?$Offset@$02@itk@@I@Z)<br>
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@std@@YAXPB_W0I@Z)<br>
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@std@@YAXPB_W0I@Z)<br>
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@std@@YAXPB_W0I@Z)<br>
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@std@@QBEXXZ) referenced in function "public: __thiscall itk::Vector<float,3>::Vector<float,3>(float const * const)" (??0?$Vector@M$02@itk@@QAE@QBM@Z)<br>
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@std@@QBEXXZ)<br>
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@std@@QBEXXZ)<br>
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@std@@QBEXXZ)<br>
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@std@@QBEXXZ)<br>
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@std@@QBEXXZ)<br>
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@std@@QBEXXZ)<br>
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@std@@QAE@XZ)<br>
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@std@@QAE@XZ)<br>
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@std@@QAE@XZ)<br>
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@std@@QAE@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@V?$allocator@V?$Offset@$02@itk@@@std@@@std@@IAE@XZ)<br>
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@std@@QAE@XZ)<br>
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@std@@QAE@XZ)<br>
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@std@@QAE@XZ)<br>
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@std@@QAE@XZ)<br>
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@std@@QAE@XZ)<br>
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@std@@QAE@XZ)<br>
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@std@@QAE@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@V?$allocator@N@std@@@std@@IAE@V?$allocator@N@1@@Z)<br>
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@std@@QAE@XZ)<br>
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@std@@QAE@XZ)<br>
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@std@@QAE@XZ)<br>
1>../../bin/arch-Win32VC7-Debug/Hxitk.dll : fatal error LNK1120: 4 unresolved externals<br>1>Build log was saved at "file://c:\Users\David\Amira_Local\obj\arch-Win32VC7-Debug\Hxitk\BuildLog.htm"<br>1>Hxitk - 29 error(s), 0 warning(s)<br>
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========<br><br>I have added itkvnl.lib and included the path. <br><br>Any help would be greatly appreciated.<br><br>Thanks<br><br>David