wxq491216 / google-breakpad

Automatically exported from code.google.com/p/google-breakpad
0 stars 0 forks source link

Linking with Breakpad failes (/Zc:wchar_t- is set) #419

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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:
<code>
      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;
      }
</code>
Linker output looks like:
<code>
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)
</code>
"Treat wchar_t as Built-in Type" is disabled in this test project as well.

Original issue reported on code.google.com by rnikifo...@gmx.net on 3 Mar 2011 at 2:25

GoogleCodeExporter commented 9 years ago
I Have the same problem on VS2005

Original comment by iv...@virtrium.com on 19 Jan 2012 at 6:11

GoogleCodeExporter commented 9 years ago
i have the same problem on vs2010

Original comment by perryfei@gmail.com on 21 Jun 2013 at 10:24