Compiling python modules with DEBUG defined on MSVC

前端 未结 5 1593
我寻月下人不归
我寻月下人不归 2020-12-14 02:08

Python rather stupidly has a pragma directive in its include files that forces a link against python26_d.lib when the DEBUG preprocessor variable i

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-14 02:49

    You can also go the other way: switch to «Release» and then debug it. you need to enable generation of debugging symbols info in project properties in compiler and linker prefs; MSDN here will tell you exactly what options you need to set to debug a release build.

提交回复
热议问题