Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » How to config CDT debug for cygwin?(eclipse CDT plugin )
How to config CDT debug for cygwin? [message #1847620] Tue, 02 November 2021 13:04 Go to next message
Chengpu Wang is currently offline Chengpu WangFriend
Messages: 5
Registered: November 2021
Junior Member
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?
Re: How to config CDT debug for cygwin? [message #1847648 is a reply to message #1847620] Wed, 03 November 2021 02:11 Go to previous message
Chengpu Wang is currently offline Chengpu WangFriend
Messages: 5
Registered: November 2021
Junior Member
It seems that the latest gdb above version 9.2-1 is wrong: https://www.eclipse.org/forums/index.php/t/1105969/
I have downgrade my gdb and gcc for cgywin to cure the issue
Previous Topic:cannot create projects "No project types available"
Next Topic:Invalid template arguments for std::vector<std::string>
Goto Forum:
  


Current Time: Thu Dec 08 20:06:40 GMT 2022

Powered by FUDForum. Page generated in 0.02260 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top