程序.exe在cygwin上运行但在Visual Studio上调试和运行时给出异常

时间:2018-02-12 08:26:23

标签: c++ visual-studio dll cygwin

当我从cygwin调用它时,我可以运行我的程序。 但是当我想调试它时,在visual stdio上,我得到以下异常:

Exception thrown at 0x610DDA44 (cygwin1.dll) in .exe: 0xC0000005: Access 
violation writing location 0x00000000.

If there is a handler for this exception, the program may be safely continued.

我将cygwin1.dll路径添加到我的项目环境中,但它没有用。

我正在尝试通过此链接构建和运行canfestival:https://canfestival.org/code 请帮助解决这个例外。

1 个答案:

答案 0 :(得分:0)

正如Scheff所说,不建议同时使用vs和cygwin。然后我尽力使我的库文件显示在可视stdio中,并且现在无需cygwin即可调试。还有很多人建议如果无法使用Visual Studio创建库,则对GDB等cygwin使用调试器。

相关问题