Hi,
I've successfully compiled breakpad on vs2008 with "Treat wchar_t as Built-in Type" disabled and "Multy-threaded debug dll" as runtime library. Now I have a simple test code with Qt (4.4.3) that cannot be linked:
int main(int argc, char *argv[])
{
ExceptionHandler* handler_process=new ExceptionHandler(L".", NULL, ShowDumpResults, NULL, ExceptionHandler::HANDLER_ALL,
MiniDumpNormal, NULL, NULL/*&custom_info*/);
return 0;
}
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
ExceptionHandler* handler_process=new ExceptionHandler(L".", NULL, ShowDumpResults, NULL, ExceptionHandler::HANDLER_ALL,
MiniDumpNormal, NULL, NULL/*&custom_info*/);
return 0;
}
To copy to clipboard, switch view to plain text mode
Linker output looks like:
1>Linking...
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >::~basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >(void)" (??1?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@XZ) already defined in exception_handler.lib(exception_handler.obj)
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >(unsigned short const *)" (??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@PBG@Z) already defined in crash_generation_client.lib(crash_generation_client.obj)
1>Linking...
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >::~basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >(void)" (??1?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@XZ) already defined in exception_handler.lib(exception_handler.obj)
1>msvcprtd.lib(MSVCP90D.dll) : error LNK2005: "public: __thiscall std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >(unsigned short const *)" (??0?$basic_string@GU?$char_traits@G@std@@V?$allocator@G@2@@std@@QAE@PBG@Z) already defined in crash_generation_client.lib(crash_generation_client.obj)
To copy to clipboard, switch view to plain text mode
"Treat wchar_t as Built-in Type" is disabled in this test project as well.
Any ideas?
Bookmarks