I like it because I need an editor that runs exactly the same on multiple platforms like Solaris, Linux and others. But if you are on the Mac exclusively then maybe you need to bother with an X11 program. This is a nice C, C++ development tool, and it works pretty well. But I do prefer to use the C++ plug in with Eclipse. And there is much more support/tutorials in the Eclipse community. I've just started a job where I'm programming in C on a Mac, which is my first experience using a Mac for development. For now I'm using Xcode as my editor, then using make/gcc/svn at the command line for compiling and source control. Code::Blocks is a free C, C++ IDE created to meet the most demanding needs of the developers of C and C++.This is an IDE with all features you need for C and C++ development. Features: • Works on Windows, Linux and Mac OS X as well.
I teach a C++ course using Visual Studio. One of my students has a Mac and was looking for an IDE to use on his machine. What would be good to recommend?
Let’s start with C/C++. Getting the gcc Compiler As an aside, when you install Apple’s Xcode (free from the Mac App Store only in Lion), gcc is automatically installed in /usr/bin.
Peter Mortensenclosed as not constructive by WillFeb 14 '12 at 14:11
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. If this question can be reworded to fit the rules in the help center, please edit the question.
9 Answers
Xcode which is part of the MacOS Developer Tools is a great IDE. There's also NetBeans and Eclipse that can be configured to build and compile C++ projects.
Clion from JetBrains, also is available now, and uses Cmake as project model.
Grant LimbergGrant LimbergC++ Editor Download
Terry G LorberTerry G LorberCode::Blocks is cross-platform, using the wxWidgets library. It's the one I use.
Peter MortensenAnother (albeit non-free) option is to install VMware Fusion or Parallels Desktop on the Mac and run Windows with Visual Studio in a VM.
This works really pretty well. The downsides are:
- it'll cost money for the virtual machine software and Windows (the school may have some academic licensing that may help here)
- the Mac needs to be an x86 Mac with a fair bit of memory
The upside is that you and the student don't need to hassle with differences in the IDE that may not be accounted for in your instruction materials.
Michael BurrMichael BurrIf you are looking for a full-fledged IDE like Visual Studio,I think Eclipse might be your best bet.
Eclipse is also highly extensible and configurable.
See here: http://www.eclipse.org/downloads/
nkr1ptnkr1ptIt's not really an IDE per se, but I really like TextMate, and with the C++ bundle that ships with it, it can do a lot of the things you'd find in an IDE (without all the bloat!).
mipadimipadiAvoid Eclipse for C/C++ development for now on Mac OS X v10.6 (Snow Leopard). There are serious problems which make debugging problematic or nearly impossible on it currently due to GDB incompatibility problems and the like. See: Trouble debugging C++ using Eclipse Galileo on Mac.
Xcode is free and good, which is lucky because it's pretty much the only option on the Mac.
idmean