|
|
#1 |
|
gcc doesn't work
Hi guys,
the problem which I am struggling with is that I wanna compile an objectiveC code via terminal and it doesn't work. I have the Xcode 3 version but OS X Mountain Lion. After entering the command gcc -framework Foundation -fobjc-gc-only -o Program sourcecode.m terminal says: bash:command gcc not found |
|
|
|
0
|
|
|
#2 |
|
Xcode 4.5 is a free download from the App Store.
Any particular reason why you are trying to use gcc and not clang? |
|
|
|
0
|
|
|
#3 | |
|
Quote:
Code:
/usr/bin/gcc -framework Foundation -fobjc-gc-only -o Program sourcecode.m |
||
|
|
0
|
|
|
#4 |
|
I've already tried clang... :/
reason: OS X Mountain Lion and old version of xcode? |
|
|
|
0
|
|
|
#5 |
|
Download Xcode 4 from the App Store (it's free), then open preferences -> downloads and download & install the command line tools.
IDK of any other ways to install the command line tools (not that I've tried.) |
|
|
|
0
|
|
|
#6 | |
|
Quote:
http://kennethreitz.com/xcode-gcc-and-homebrew.html |
||
|
|
0
|
|
|
#7 |
|
Silly me, I though that package required Xcode to be installed first. At least that's how I've used it.
B
__________________
MBA (13" 1.7 GHz 128GB), UMBP (15" SD 2.8 GHz), UMB (13" 2.4 GHz), iMac (17" Yonah), 32GB iPad 3 WiFi+LTE, 64 GB iPad WiFi, 32 GB iPhone 5, Airport Extreme |
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 07:43 PM.







Linear Mode
