how to generate pdb files while building library using mingw?

前端 未结 3 732
悲&欢浪女
悲&欢浪女 2021-01-04 02:57

I am cross compiling from linux to windows using the mingw32 tools. I need to generate pdb files for debugging on windows. Is there a way to do this?

3条回答
  •  感动是毒
    2021-01-04 03:49

    Another option is to cross-compile using llvm/clang instead of mingw, since llvm can now produce .pdb files. http://blog.llvm.org/2017/08/llvm-on-windows-now-supports-pdb-debug.html

    That said, I just use cv2pdb. It doesn't translate everything correctly, but it's good enough.

提交回复
热议问题