![](/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.