C++ Compiler for OS X

closed account (jwkNwA7f)
What is a good compiler for OS X other than Xcode? I have googled this a lot, but I couldn't find quite the right one.

Thank you!
I use clang or gcc.
iirc, clang comes with the Apple command line tools which you can download from the Apple developer website.

If not, you can install it via macports (which is akin to linux's apt-get). You want to make sure you have the latest versions (clang 3.3, or gcc 4.8) in order to get the latest C++11 updates.

You should find that article helpful.

Note that XCode isn't a compiler. It's an IDE.
Last edited on
closed account (jwkNwA7f)
Thank you. Thumper! I'll try gcc.
closed account (jwkNwA7f)
Oh, what is the difference between compilers and IDE's?
The compiler interprets your program into well.. A program. It transforms your source code into machine code for the computer to execute.
The IDE (stands for Integrated Development Environment) is a glorified text editor. It provides facilities to compile your program or step through line by line and debug your program. An IDE is not required. You can code in TextEdit if you want.
closed account (jwkNwA7f)
Okay, thank you for your time and for your answer!

I had always thought that they were the same, just different names.

Just to make sure I understand, is Notepad++ an IDE?
Loosely. Notepad++ is more of a text editor.
Does notepad++ offer the feature to compile your program from inside Notepad++? If so, i would say yes. IDE. Otherwise, text editor.
Last edited on
closed account (jwkNwA7f)
It doesn't compile anything, so I guess it is a text editor.

It does have different colors for different things (e. g. int, using, etc.).
Topic archived. No new replies allowed.