<div>Hello,</div>
<div> Due to a computer crash. I had to reinstall ITK on my PC. I have configured the "CMakeList.txt" and compiled ITK.dsw under C:\Insight directory. However, I haven't been able to compile "helloworld" since the new installation of the ITK. I suspect it has to do with the fact that CMake automatically default to Library Sharing as OFF. So when I generate my
ITK.dsw, the library was sharing somehow. But I can be wrong, anyhow, this is the error that I get in trying to build "helloworld.cxx":</div>
<div> </div>
<div>
<p>--------------------Configuration: HelloWorld - Win32 Debug--------------------<br>Linking...<br>LINK : warning LNK4049: locally defined symbol ""public: static void __cdecl itk::LightObject::operator delete(void *)" (
<a href="mailto:??3LightObject@itk@@SAXPAX@Z">??3LightObject@itk@@SAXPAX@Z</a>)" imported<br>LINK : warning LNK4049: locally defined symbol ""public: static void * __cdecl itk::LightObject::operator new(unsigned int)" (
<a href="mailto:??2LightObject@itk@@SAPAXI@Z">??2LightObject@itk@@SAPAXI@Z</a>)" imported<br>LINK : warning LNK4049: locally defined symbol ""public: static class itk::SmartPointer<class itk::LightObject> __cdecl itk::ObjectFactoryBase::CreateInstance(char const *)" (
<a href="mailto:?CreateInstance@ObjectFactoryBase@itk@@SA?AV?$SmartPointer@VLightObject@it">?CreateInstance@ObjectFactoryBase@itk@@SA?AV?$SmartPointer@VLightObject@it</a><br><a href="mailto:k@@@2@PBD@Z">k@@@2@PBD@Z</a>)" imported
<br>LINK : warning LNK4049: locally defined symbol ""void __cdecl itk::OutputWindowDisplayDebugText(char const *)" (<a href="mailto:?OutputWindowDisplayDebugText@itk@@YAXPBD@Z">?OutputWindowDisplayDebugText@itk@@YAXPBD@Z
</a>)" imported<br>LINK : warning LNK4049: locally defined symbol ""public: static bool __cdecl itk::Object::GetGlobalWarningDisplay(void)" (<a href="mailto:?GetGlobalWarningDisplay@Object@itk@@SA_NXZ">
?GetGlobalWarningDisplay@Object@itk@@SA_NXZ</a>)" imported<br>LINK : warning LNK4049: locally defined symbol ""public: bool __thiscall itk::Object::GetDebug(void)const " (<a href="mailto:?GetDebug@Object@itk@@QBE_NXZ">
?GetDebug@Object@itk@@QBE_NXZ</a>)" imported<br>LINK : warning LNK4049: locally defined symbol ""public: virtual __thiscall itk::ExceptionObject::~ExceptionObject(void)" (<a href="mailto:??1ExceptionObject@itk@@UAE@XZ">
??1ExceptionObject@itk@@UAE@XZ</a>)" imported<br>LINK : warning LNK4049: locally defined symbol ""public: __thiscall itk::ExceptionObject::ExceptionObject(class itk::ExceptionObject const &)" (<a href="mailto:??0ExceptionObject@itk@@QAE@ABV01@@Z">
??0ExceptionObject@itk@@QAE@ABV01@@Z</a>)" imported<br>LINK : warning LNK4049: locally defined symbol ""public: __thiscall itk::ExceptionObject::ExceptionObject(char const *,unsigned int,char const *,char const *)" (
<a href="mailto:??0ExceptionObject@itk@@QAE@PBDI00@Z">??0ExceptionObject@itk@@QAE@PBDI00@Z</a>)" imported<br>LINK : warning LNK4049: locally defined symbol ""public: virtual void __thiscall itk::DataObject::CopyInformation(class itk::DataObject const *)" (
<a href="mailto:?CopyInformation@DataObject@itk@@UAEXPBV12@@Z">?CopyInformation@DataObject@itk@@UAEXPBV12@@Z</a>)" imported<br>LINK : warning LNK4049: locally defined symbol ""public: class itk::SmartPointerForwardReference<class itk::ProcessObject> __thiscall itk::DataObject::GetSource(void)const " (
<a href="mailto:?GetSource@DataObject@itk@@QBE?AV?$SmartPointerForwardReference@VProcessOb">?GetSource@DataObject@itk@@QBE?AV?$SmartPointerForwardReference@VProcessOb</a><br><a href="mailto:ject@itk@@@2@XZ">ject@itk@@@2@XZ
</a>)" imported<br>LINK : warning LNK4049: locally defined symbol ""protected: virtual __thiscall itk::DataObject::~DataObject(void)" (<a href="mailto:??1DataObject@itk@@MAE@XZ">??1DataObject@itk@@MAE@XZ
</a>)" imported<br>LINK : warning LNK4049: locally defined symbol ""protected: __thiscall itk::DataObject::DataObject(void)" (<a href="mailto:??0DataObject@itk@@IAE@XZ">??0DataObject@itk@@IAE@XZ</a>)" imported
<br>LINK : warning LNK4049: locally defined symbol ""class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl itk::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,class itk::Indent const &)" (
<a href="mailto:??6itk@@YAAAV?$basi">??6itk@@YAAAV?$basi</a><br><a href="mailto:c_ostream@DU?$char_traits@D@std@@@std@@AAV12@ABVIndent@0@@Z">c_ostream@DU?$char_traits@D@std@@@std@@AAV12@ABVIndent@0@@Z</a>)" imported<br>
LINK : warning LNK4049: locally defined symbol ""protected: virtual void __thiscall itk::Region::PrintSelf(class std::basic_ostream<char,struct std::char_traits<char> > &,class itk::Indent)const " (
<a href="mailto:?PrintSelf@Region@itk@@MBEXAAV?$basic_ostream@DU?$c">?PrintSelf@Region@itk@@MBEXAAV?$basic_ostream@DU?$c</a><br><a href="mailto:har_traits@D@std@@@std@@VIndent@2@@Z">har_traits@D@std@@@std@@VIndent@2@@Z</a>
)" imported<br>LINK : warning LNK4049: locally defined symbol ""public: virtual void __thiscall itk::DataObject::Initialize(void)" (<a href="mailto:?Initialize@DataObject@itk@@UAEXXZ">?Initialize@DataObject@itk@@UAEXXZ
</a>)" imported<br>LINK : warning LNK4049: locally defined symbol ""public: class itk::Indent __thiscall itk::Indent::GetNextIndent(void)" (<a href="mailto:?GetNextIndent@Indent@itk@@QAE?AV12@XZ">?GetNextIndent@Indent@itk@@QAE?AV12@XZ
</a>)" imported<br>LINK : warning LNK4049: locally defined symbol ""protected: virtual void __thiscall itk::DataObject::PrintSelf(class std::basic_ostream<char,struct std::char_traits<char> > &,class itk::Indent)const " (
<a href="mailto:?PrintSelf@DataObject@itk@@MBEXAAV?$basic_ostre">?PrintSelf@DataObject@itk@@MBEXAAV?$basic_ostre</a><br><a href="mailto:am@DU?$char_traits@D@std@@@std@@VIndent@2@@Z">am@DU?$char_traits@D@std@@@std@@VIndent@2@@Z
</a>)" imported<br>LINK : warning LNK4049: locally defined symbol ""protected: __thiscall itk::Object::Object(void)" (<a href="mailto:??0Object@itk@@IAE@XZ">??0Object@itk@@IAE@XZ</a>)" imported<br>
LINK : warning LNK4049: locally defined symbol ""protected: virtual void __thiscall itk::Object::PrintSelf(class std::basic_ostream<char,struct std::char_traits<char> > &,class itk::Indent)const " (
<a href="mailto:?PrintSelf@Object@itk@@MBEXAAV?$basic_ostream@DU?$c">?PrintSelf@Object@itk@@MBEXAAV?$basic_ostream@DU?$c</a><br><a href="mailto:har_traits@D@std@@@std@@VIndent@2@@Z">har_traits@D@std@@@std@@VIndent@2@@Z</a>
)" imported<br>LINK : warning LNK4049: locally defined symbol ""public: void __thiscall itk::LightObject::Print(class std::basic_ostream<char,struct std::char_traits<char> > &,class itk::Indent)const " (
<a href="mailto:?Print@LightObject@itk@@QBEXAAV?$basic_ostream@DU?$char_trait">?Print@LightObject@itk@@QBEXAAV?$basic_ostream@DU?$char_trait</a><br><a href="mailto:s@D@std@@@std@@VIndent@2@@Z">s@D@std@@@std@@VIndent@2@@Z</a>
)" imported<br>LINK : warning LNK4049: locally defined symbol ""protected: virtual __thiscall itk::Object::~Object(void)" (<a href="mailto:??1Object@itk@@MAE@XZ">??1Object@itk@@MAE@XZ</a>)" imported
<br>HelloWorld.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall itk::Region::~Region(void)" (<a href="mailto:__imp_??1Region@itk@@UAE@XZ">__imp_??1Region@itk@@UAE@XZ
</a>)<br>HelloWorld.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static double const itk::NumericTraits<double>::Zero" (<a href="mailto:__imp_?Zero@?$NumericTraits@N@itk@@2NB">
__imp_?Zero@?$NumericTraits@N@itk@@2NB</a>)<br>HelloWorld.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall itk::Region::Region(void)" (<a href="mailto:__imp_??0Region@itk@@QAE@XZ">
__imp_??0Region@itk@@QAE@XZ</a>)<br>Debug/HelloWorld.exe : fatal error LNK1120: 3 unresolved externals<br>Error executing link.exe.</p>
<p>ALL_BUILD - 4 error(s), 22 warning(s)<br></p>
<p> </p>
<p> </p>
<p>I am wondering how may I go about remedy this problem without re-installing or rebuilding ITK.dsw again, which would take 3 hours to build. Thank you.</p>
<p>Xiaoming</p></div>