Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 5, 2009, 04:51 PM   #1
Cdub16
macrumors member
 
Join Date: May 2008
gcc compiler?

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?
Cdub16 is offline   0 Reply With Quote
Old Nov 5, 2009, 05:57 PM   #2
HiRez
macrumors 601
 
HiRez's Avatar
 
Join Date: Jan 2004
Location: 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?
__________________
Go outside, the graphics are amazing!
HiRez is offline   0 Reply With Quote
Old Nov 5, 2009, 06:51 PM   #3
Cdub16
Thread Starter
macrumors member
 
Join Date: May 2008
yup that did it.
idk why i didnt think of that.....
but thanks
Cdub16 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
GCC compile problem - architecture reeka Mac Programming 4 Oct 19, 2010 10:35 AM
How to change GCC compiler from 64bit to 32bit in Eclipse? killjanuary Mac Programming 1 Aug 2, 2010 02:12 AM
Changing GCC compiler from version 4.2 to 4.0 SAEinSDSU Mac Programming 7 Feb 22, 2010 09:46 PM
How Do I Install New Libraries in gcc compiler ScKaSx Mac Programming 8 Mar 9, 2006 07:34 PM
gcc compilation error -- ld: Undefined symbols pigbrain Mac Programming 6 Jul 19, 2005 07:23 AM


All times are GMT -5. The time now is 12:10 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC