简体   繁体   English

在Windows上编译Google Breakpad时出现编译器错误LNK2019

[英]Compiler error LNK2019 when compiling Google Breakpad on Windows

So I'm trying to integrate Google Breakpad into my application following this tutorial: http://zxstudio.org/blog/2014/10/28/integrating-google-breakpad/ 所以我想谷歌Breakpad融入我的应用程序下面这个教程: http://zxstudio.org/blog/2014/10/28/integrating-google-breakpad/

I've come to the point where when I compile, I get the LNK2019 compiler error. 我到了编译的地方,我得到了LNK2019编译器错误。 After some research, I found out that it has to do with the Treat wchar_t as Built-in Type compiler option.( http://www.qtcentre.org/threads/38581-linking-google-breakpad-lib-in-our-Qt-app-on-Windows-gives-Unresolved-external-symbol ). 经过研究,我发现它与Treat wchar_t as Built-in Type编译器选项有关。( http://www.qtcentre.org/threads/38581-linking-google-breakpad-lib-in-our Windows上的Qt应用提供了未解决的外部符号 )。 I've tried to enable/disable this option, but no luck. 我试图启用/禁用此选项,但是没有运气。

Any suggestions?:) 有什么建议么?:)

You have to set "Treat wchar_t as Built-in Type" to no (since you seem to be using pre-built Qt with that option) on your project and, more importantly, on breakpad project. 您必须在项目上(更重要的是在Breakpad项目上)将“将wchar_t作为内置类型处理”设置为no(因为您似乎正在使用带有该选项的预构建Qt)。 (the lib that provides the symbol you are missing). (提供您缺少的符号的库)。

This option must match on all static libraries and dlls exporting C++ symbols. 此选项必须在所有导出C ++符号的静态库和dll上匹配。 (if they use wchar_t at all) (如果他们完全使用wchar_t)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM