![](/img/trans.png)
[英]How to get pdb files while compiling release version of static library using cmake?
[英]how to generate pdb files while building library using mingw?
我正在使用mingw32工具从linux到windows的交叉编译。 我需要生成pdb文件以便在Windows上进行调试。 有没有办法做到这一点?
GCC / MinGW以GNU GDB Debugger使用的格式生成调试信息,不支持Microsoft PDB格式。 所以你可以:
使用MSVC在Windows上构建应用程序
使用Windows版GNU GDB
另一种选择是使用llvm / clang而不是mingw进行交叉编译,因为llvm现在可以生成.pdb文件。 http://blog.llvm.org/2017/08/llvm-on-windows-now-supports-pdb-debug.html
也就是说,我只使用cv2pdb。 它没有正确翻译所有内容,但它足够好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.