Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse CDT cannot find Cygwin cc program in PATH(Eclipse shows an error indicating that it cannot locate cc in the PATH)
Eclipse CDT cannot find Cygwin cc program in PATH [message #1863835] Wed, 28 February 2024 18:57
Jhonatan Garcia is currently offline Jhonatan GarciaFriend
Messages: 1
Registered: February 2024
Junior Member
Hi everyone.

Short description: Eclipse raises an error complaining that it cannot locate the program "\usr\bin\cc" in PATH although I can run it anywhere from console.

Long explanation:

I'm trying to create a Hello World application in Eclipse using an existing CMake project as a proof of concept for the development environment. I have successfully installed Cygwin 3.5.0 under Windows 10, and built the standalone Hello World project in CMake without any issues.

Knowing that everything worked so far, I proceeded to build the project with the "Eclipse CDT4 - Unix Makefiles" generator. Eclipse was able to import the project seamlessly, but it raises an error complaining that the program "\usr\bin\cc" could not be found in PATH.

I got the GCC package installed in Cygwin, and have the PATH configured to the bin folder. Since I could not find any package containing the cc compiler for Cygwin, I simply created a link to gcc.exe inside of the Cygwin bin folder.

The project builds without any further errors, and the resulting application runs as expected. However, it is very annoying seeing an error that I cannot remove by any means.

The Problems tab claims that the error lays in the Discovery Options page in the project properties, but other than the discovery method being deprecated - and not being able to update or change that either - I cannot find any reference to \usr\bin\cc there.

Does anyone have any hint or advice on how to remove this error?

These screenshots might be helpful: index.php/fa/44019/0/

And attached you can find the toy project that raises the error in Windows 10.

Many thanks in advance!
Previous Topic: Best IDE for M1 Mac?
Next Topic:configure C++ project for remote debug BBB arm-linux-gnueabihf
Goto Forum:
  


Current Time: Sun Dec 22 06:12:56 GMT 2024

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

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

Back to the top