Reputation: 1281
I cannot seem to figure out how to use Eclipse CDT.
I am on Mac OS X, and am trying to print "Hello World" in C but I get an error:
Program "gcc" not found in PATH.
What can I do to use C in Eclipse?
Upvotes: 5
Views: 14456
Reputation: 2028
This is how i got rid of it.
Install the MinGW. Select all files in the Basic Setup and select apply the changes. Select new C++ Project You will be able to see "MinGW GCC" in the toolchain section select the same and create project.
Upvotes: 0
Reputation: 15992
I had the same problem. It may be because you don't have GCC compiler installed on your computer.
On OSX, you just have to open the Terminal and check which gcc
. If it doesn't return a path, then install GCC from here.
Once installed, this command should return the path :
I just had to restart Eclipse and everything worked well then.
Upvotes: 2
Reputation: 26071
Have you installed XCode on your machine
update I would suggest following this tutorial to install brew. You can skip the ruby part if you don't need it.
Upvotes: 0