[SOLVED]egrath DDS loader built, tested but causes conflict

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
thespecial1
Posts: 135
Joined: Thu Oct 30, 2008 11:56 am
Location: UK
Contact:

[SOLVED]egrath DDS loader built, tested but causes conflict

Post by thespecial1 »

Hi Guys

I have successfully compiled and tested egrath DDS loader using the test.dds supplied, however when I try and use the lib in my own project i get these linker errors in VS2008

Code: Select all

1>Linking...
1>CameraImporter.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: void __thiscall std::basic_ifstream<char,struct std::char_traits<char> >::`vbase destructor'(void)" (??_D?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXXZ) already defined in CameraImporter.obj
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: void __thiscall std::basic_ifstream<char,struct std::char_traits<char> >::close(void)" (?close@?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAEXXZ) already defined in CConfigReader.obj
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall std::basic_ifstream<char,struct std::char_traits<char> >::basic_ifstream<char,struct std::char_traits<char> >(char const *,int,int)" (??0?$basic_ifstream@DU?$char_traits@D@std@@@std@@QAE@PBDHH@Z) already defined in CameraImporter.obj
1>.\bin\Win32-VisualStudio\murmuur.exe : fatal error LNK1169: one or more multiply defined symbols found
could any hints be provided as to the cause/solution (apart from symbols duplicated)??
thanks
Rob

PS if anyone would like the working VS2008 project for the lib and the test program, it is here http://www.thespecialist-online.com/murmuur/ddstool.rar


** solution was to change the code generation->runtime library from "Multi-threaded Debug DLL (/MDd)" to "Multi-threaded Debug (/MTd)" for the lib ala matching murmuur's project settings
Post Reply