Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Cdub16

macrumors member
Original poster
May 30, 2008
32
0
i have xcode. i have been using it for a while now with no problems.
but when i use terminal to try to compile something using the gcc compiler

Code:
 cc -Wall -o warning warning.m
(the -Wall is just a tag for gcc to display more warning messages)
i get...

-bash cc command not found:
same with the gcc command.

i have re-downloaded the developer tools and gcc 4.0

what is wrong?
 

HiRez

macrumors 603
Jan 6, 2004
6,250
2,576
Western US
Maybe try invoking the commands directly to see if your environment is messed up? Go to /usr/bin/ in Terminal, do you see cc and gcc listed? (cc is actually just a link to gcc) What happens if you try to run them from that directory?
 

Cdub16

macrumors member
Original poster
May 30, 2008
32
0
yup that did it.
idk why i didnt think of that.....
but thanks
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.