C/C++ Development in Mac OSX?

Soldato
Joined
29 Jul 2004
Posts
9,728
Location
Bristol
Morning all, I'm just entering my second year of CompSysEng and have made the switch to mac in the gap. I'm still using Vista for windows stuff but i would like to use mac os for some dev work.

As i understand it, mac os has unix behind it anyway and the terminal works the same way. The best thing I'd be looking for is gcc/g++ compilers i can just use in terminal and a decent text editor i can use with formatting etc. for c/c++.

Any suggestions guys? Googling finds results for IDE's which is not really what im after, and also a lot of stuff for actually developing OSX apps, which agian is not really what im after.

Help?
 
Well you obviously got the gcc toolchain. The best text editors out there are vim and emacs (eugh! :) ) The learning curve is quite steap but its worth doing if you spend a lot of time using *nix based systems. I do the majority of my C coding in vim.
 
Well, any text editor should allow you to write code, but compilation is another matter - Mac isn't much of a "developer" platform. You can download Eclipse for Mac, which should include everything you need, or else failing that, you could do as Una suggested and set up the GNU toolchain including the gcc make/link process.

Alternatively, considering that you are on Mac, you could consider getting Parallels and installing Ubuntu for code work. Thats how one of my research associates works. Just another option.
 
Beyond the method Una discussed, there's always Xcode, OS X's built-in development environment. The Xcode suite includes a modified version of gcc (GCC, apple-darwin8-gcc,4.0.1 ), and can compile C, C++, Objective-C, Objective-C++, Java, and AppleScript source code with a variety of programming models, including but not limited to Cocoa, Carbon, and Java. Third parties have added support for GNU Pascal, Free Pascal, Ada, and Perl. It also makes it a snap to create universal binaries if you intend on distributing the fruits of your labors.
 
Back
Top Bottom