How to config CDT debug for cygwin? [message #1847620] |
Tue, 02 November 2021 09:04  |
Eclipse User |
|
|
|
Hi, I am new to eclipse CDT with cygwin. I just created a HelloWorld C++ project.
1) The built exe works in cygwin.
2) If I click the exe in file in file explorer, it says that it can not find cygwin1.dll. This error can be resolved by adding C:\cygwin64\bin to the Path env variable.
3) If I try to debug directly, I got the following errors:
Failed to execute MI command:
-exec-run
Error message from debugger back end:
Error creating process /cygdrive/c/WINDOWS/system32/C:/Users/Cheng_g15klso/Documents/Proj/HelloWorld/C:/Users/Cheng_g15klso/Documents/Proj/HelloWorld/debug/HelloWorld.exe, (error 2).
The above diagnosis seems to point to lacking of C:\cygwin64\bin, so I add C:\cygwin64\bin to Path env variable in the env var tab of the debug config, but the result is the same.
My questions:
1) how to solve this issue?
2) Where to find a list of error to decode error 2?
|
|
|
|
Powered by
FUDForum. Page generated in 0.12881 seconds