<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Dear All,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I am trying a simple raycasting in vtk and I get a lot of linker errors like:</DIV>
<DIV>&nbsp;</DIV><FONT size=1>
<DIV>1&gt;Linking...</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall std::_Lockit::~_Lockit(void)" (??1_Lockit@std@@QAE@XZ) already defined in libcpmtd.lib(xlock.obj)</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall std::_Lockit::_Lockit(int)" (??0_Lockit@std@@QAE@H@Z) already defined in libcpmtd.lib(xlock.obj)</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "void __cdecl std::_Debug_message(wchar_t const *,wchar_t const *,unsigned int)" (?_Debug_message@std@@YAXPB_W0I@Z) already defined in libcpmtd.lib(stdthrow.obj)</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall std::_Container_base_secure::~_Container_base_secure(void)" (??1_Container_base_secure@std@@QAE@XZ) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;::~basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;(void)" (??1?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;(char const *)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@PBD@Z) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;(class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; const &amp;)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: char const * __thiscall std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;::c_str(void)const " (?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall std::_Container_base_secure::_Container_base_secure(void)" (??0_Container_base_secure@std@@QAE@XZ) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: void __thiscall std::basic_ios&lt;char,struct std::char_traits&lt;char&gt; &gt;::setstate(int,bool)" (?setstate@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: int __thiscall std::ios_base::width(int)" (?width@ios_base@std@@QAEHH@Z) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: int __thiscall std::basic_streambuf&lt;char,struct std::char_traits&lt;char&gt; &gt;::sputn(char const *,int)" (?sputn@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHPBDH@Z) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: static bool __cdecl std::char_traits&lt;char&gt;::eq_int_type(int const &amp;,int const &amp;)" (?eq_int_type@?$char_traits@D@std@@SA_NABH0@Z) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: static int __cdecl std::char_traits&lt;char&gt;::eof(void)" (?eof@?$char_traits@D@std@@SAHXZ) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: int __thiscall std::basic_streambuf&lt;char,struct std::char_traits&lt;char&gt; &gt;::sputc(char)" (?sputc@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEHD@Z) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: class std::basic_streambuf&lt;char,struct std::char_traits&lt;char&gt; &gt; * __thiscall std::basic_ios&lt;char,struct std::char_traits&lt;char&gt; &gt;::rdbuf(void)const " (?rdbuf@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_streambuf@DU?$char_traits@D@std@@@2@XZ) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: char __thiscall std::basic_ios&lt;char,struct std::char_traits&lt;char&gt; &gt;::fill(void)const " (?fill@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEDXZ) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: int __thiscall std::ios_base::flags(void)const " (?flags@ios_base@std@@QBEHXZ) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: int __thiscall std::ios_base::width(void)const " (?width@ios_base@std@@QBEHXZ) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: static unsigned int __cdecl std::char_traits&lt;char&gt;::length(char const *)" (?length@?$char_traits@D@std@@SAIPBD@Z) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: class std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt; &amp; __thiscall std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt;::flush(void)" (?flush@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV12@XZ) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: class std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt; * __thiscall std::basic_ios&lt;char,struct std::char_traits&lt;char&gt; &gt;::tie(void)const " (?tie@?$basic_ios@DU?$char_traits@D@std@@@std@@QBEPAV?$basic_ostream@DU?$char_traits@D@std@@@2@XZ) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: bool __thiscall std::ios_base::good(void)const " (?good@ios_base@std@@QBE_NXZ) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: void __thiscall std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt;::_Osfx(void)" (?_Osfx@?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEXXZ) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "bool __cdecl std::uncaught_exception(void)" (?uncaught_exception@std@@YA_NXZ) already defined in libcpmtd.lib(uncaught.obj)</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: void __thiscall std::basic_streambuf&lt;char,struct std::char_traits&lt;char&gt; &gt;::_Lock(void)" (?_Lock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: void __thiscall std::basic_streambuf&lt;char,struct std::char_traits&lt;char&gt; &gt;::_Unlock(void)" (?_Unlock@?$basic_streambuf@DU?$char_traits@D@std@@@std@@QAEXXZ) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; &amp; __thiscall std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;::operator=(char const *)" (??4?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV01@PBD@Z) already defined in libcpmtd.lib(locale0.obj)</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: void __thiscall std::_Container_base_secure::_Orphan_all(void)const " (?_Orphan_all@_Container_base_secure@std@@QBEXXZ) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: unsigned int __thiscall std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;::size(void)const " (?size@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIXZ) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: bool __thiscall std::ios_base::fail(void)const " (?fail@ios_base@std@@QBE_NXZ) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: void __thiscall std::basic_ios&lt;char,struct std::char_traits&lt;char&gt; &gt;::clear(int,bool)" (?clear@?$basic_ios@DU?$char_traits@D@std@@@std@@QAEXH_N@Z) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: int __thiscall std::ios_base::rdstate(void)const " (?rdstate@ios_base@std@@QBEHXZ) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: class std::_String_iterator&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; __thiscall std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;::begin(void)" (?begin@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AV?$_String_iterator@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ) already defined in libcpmtd.lib(cout.obj)</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; &amp; __thiscall std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;::erase(unsigned int,unsigned int)" (?erase@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@II@Z) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; &amp; __thiscall std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;::append(unsigned int,char)" (?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@ID@Z) already defined in libcpmtd.lib(cout.obj)</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; &amp; __thiscall std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;::assign(char const *)" (?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBD@Z) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; &amp; __thiscall std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;::assign(char const *,unsigned int)" (?assign@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@PBDI@Z) already defined in MyData.obj</DIV>
<DIV>1&gt;msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "protected: char * __thiscall std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;::_Myptr(void)" (?_Myptr@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IAEPADXZ) already defined in MyData.obj</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: __invalid_parameter already defined in LIBCMT.lib(invarg.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: "public: virtual __thiscall std::exception::~exception(void)" (??1exception@std@@UAE@XZ) already defined in LIBCMT.lib(stdexcpt.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: "public: __thiscall std::exception::exception(void)" (??0exception@std@@QAE@XZ) already defined in LIBCMT.lib(stdexcpt.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: "public: __thiscall std::exception::exception(class std::exception const &amp;)" (??0exception@std@@QAE@ABV01@@Z) already defined in LIBCMT.lib(stdexcpt.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: "public: __thiscall std::exception::exception(char const * const &amp;)" (??0exception@std@@QAE@ABQBD@Z) already defined in LIBCMT.lib(stdexcpt.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _getenv already defined in LIBCMT.lib(getenv.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _exit already defined in LIBCMT.lib(crt0dat.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _free already defined in LIBCMT.lib(free.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _malloc already defined in LIBCMT.lib(malloc.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _memmove_s already defined in LIBCMT.lib(memmove_s.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _strncmp already defined in LIBCMT.lib(strncmp.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _strcspn already defined in LIBCMT.lib(strcspn.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _memmove already defined in LIBCMT.lib(memmove.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _realloc already defined in LIBCMT.lib(realloc.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _getc already defined in LIBCMT.lib(fgetc.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _ungetc already defined in LIBCMT.lib(ungetc.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _ftell already defined in LIBCMT.lib(ftell.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _fclose already defined in LIBCMT.lib(fclose.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _fopen already defined in LIBCMT.lib(fopen.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _fread already defined in LIBCMT.lib(fread.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _atoi already defined in LIBCMT.lib(atox.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _fseek already defined in LIBCMT.lib(fseek.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _fgetc already defined in LIBCMT.lib(fgetc.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _isspace already defined in LIBCMT.lib(_ctype.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _abort already defined in LIBCMT.lib(abort.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _strchr already defined in LIBCMT.lib(strchr.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _tolower already defined in LIBCMT.lib(tolower.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _fwrite already defined in LIBCMT.lib(fwrite.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: __errno already defined in LIBCMT.lib(dosmap.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: ___iob_func already defined in LIBCMT.lib(_file.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _isalpha already defined in LIBCMT.lib(_ctype.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _isupper already defined in LIBCMT.lib(_ctype.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: __stricmp already defined in LIBCMT.lib(stricmp.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _strftime already defined in LIBCMT.lib(strftime.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: _fflush already defined in LIBCMT.lib(fflush.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(ti_inst.obj) : error LNK2005: "private: __thiscall type_info::type_info(class type_info const &amp;)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(ti_inst.obj) : error LNK2005: "private: class type_info &amp; __thiscall type_info::operator=(class type_info const &amp;)" (??4type_info@@AAEAAV0@ABV0@@Z) already defined in LIBCMT.lib(typinfo.obj)</DIV>
<DIV>1&gt;MSVCRTD.lib(MSVCR90D.dll) : error LNK2005: __strdup already defined in LIBCMT.lib(strdup.obj)</DIV>
<DIV>1&gt;LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library</DIV>
<DIV>1&gt;LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library</DIV>
<DIV>1&gt;Debug/radu.exe : fatal error LNK1169: one or more multiply defined symbols found</DIV>
<DIV>1&gt;Project : warning PRJ0018 : The following environment variables were not found:</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have no idea what all of this means...but I know I have included all the libs and dependencies (tha other vtk applications work).</DIV>
<DIV>&nbsp;</DIV>
<DIV>Best,</DIV>
<DIV>Radu.</FONT></DIV></td></tr></table><br>