Are there any free c++ compilers for macs that do not need xcode?
+1
A:
If you install the Developer Tools (which include Xcode), you get GCC installed as well. You can use it from the command line.
gcc -o myprogram main.cpp
jtbandes
2010-08-10 05:29:23
How do I install the Developer Tools?
Ricky Demer
2010-08-10 05:34:07
The developer tools are on one of the DVDs that come with OS X.
ggg
2010-08-10 05:34:42
Is there any way to get them if I don't have the DVD anymore?
Ricky Demer
2010-08-10 05:36:28
You can download them from http://developer.apple.com/
Jake Petroules
2010-08-10 05:38:42
Yes download from Apple: http://developer.apple.com/technologies/xcode.html
Martin York
2010-08-10 05:39:46
I suppose this is a correct answer, although it misses the point of not needing xcode, which is to avoid the proprietary license.
Ricky Demer
2010-08-10 05:53:48
@Ricky: it doesn't require Xcode. It's just GCC. It's conveniently installed with Xcode.
jtbandes
2010-08-10 06:10:54
@Ricky Demer: Is this way you are trying to bootstrap gcc? gcc is shipped under the GPL. Apple can not modify this license (even though it is shipped with XCode) and thus is perfectly usable.
Martin York
2010-08-10 10:29:29
A:
If you have very small needs, you might be able to use a an online IDE like compilr (http://www.compilr.com) or codepad (http://www.codepad.org).
Merlyn Morgan-Graham
2010-08-10 05:36:28
A:
download the latest iPhone SDK from developer.apple.com
it includes the XCode and GCC tool chain for both Mac and iPhone development.
you won't need any iPhone developer license if you are developing for Mac.
Jonny
2010-08-10 05:38:59