anon_nerd
anon_nerd

Reputation: 1281

Program "gcc" not found in PATH with Eclipse CDT

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

Answers (3)

Shashank Saxena
Shashank Saxena

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

Rob
Rob

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 :

Looking for GCC in OSX Terminal

I just had to restart Eclipse and everything worked well then.

Upvotes: 2

Antarr Byrd
Antarr Byrd

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

Related Questions