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
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