Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 364
anon_nerd Avatar asked Nov 03 '22 14:11

anon_nerd


1 Answers

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.

like image 185
Rob Avatar answered Nov 08 '22 09:11

Rob