tags:

views:

515

answers:

7

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.

Is there a good, full featured IDE out there for Macs that will compile C code (something comparable to VS would be ideal), or should I stick with these low level tools?

EDIT: so I called XCode a "low level tool" because I was under the impression that it was just a text editor for code, like gvim. I will definitely look into it's compiling/source control features.

+1  A: 

Xcode can manage project and compile for you as any IDE. But if you're familiar with CLI, I would recommand you to use a good editor and your usual build tools. Emacs and vim are available on os x (using xcode just for its editor is not ideal). Many mac dev love the excellent TextMate editor, but it is not a free (as in freedom) software.

p4bl0
+7  A: 

You can also try Eclipse with the CDT plugin.

+1 for eclipse CDT, really like it.
RageZ
Yes, Eclipse with CDT is quite nice. You will also get the task focused UI (Mylin) which is now included in all Eclipse downloads. It helps a lot when connected to a bugtracking system
lostiniceland
NetBeans is another good Java-based IDE that supports C/C++.
Nosredna
+1  A: 

Good ide: Xcode

Good non-ide option: vim/make/gcc

stefanB
+2  A: 

Remember that Objective-C is a superset of C (a pretty pure one, if I recall correctly). You should be able to use XCode for editing, compiling, and debugging.

Here's one solution (which tells you to create a C++ project, then rename main.cpp to main.c)... http://www.cs.nyu.edu/~s70201/C%5FIn%5FXcode/Xcode%5FTutorial.html

Nosredna
especially as xcode has built-in SVN support, and can easily use an external makefile for building
Jarret Hardie
+1  A: 

Textmate == Awesome

PiPeep
+3  A: 

I think it would make the most sense if you explained what you felt you were missing with Xcode; Xcode meets all the requirements you have stated. It has an editor, debugger, the target configuration is extremely flexible. It doesn't have all the high level VS 'wizardry' - but it sounds like you don't need it.

For C based work, I use Xcode, TextMate, and Eclipse the most.

Justin
P.S. In addition to visual target configuration from the IDE. Xcode does have target templates for running scripts, or make files (which would then run the script when you hit build). Having said that, the possibilities are limitless, but the templates don't show you everything possible. Taking this approach may be faster or slower, depending on your background - you may lose some of the 'integration' by doing so (like message bubbles). Any app with a lot of features takes time to learn, but Xcode *is* very powerful as a front end for the tool chain, and in its own right.
Justin
A: 

Obviously 'good' is a subjective decision, but Xcode 3.2 is certainly up to par with what you can do in VisualStudio (if one considers VS good, is another thing of course).

I have a project with 250000+ lines of codes, 10 dylibs, helpfile, all in an SVN (Perforce) etc. and hardly ever go outside Xocde.

Xcode has a few peculiar ways to do some things and the debugger is not quite as powerful as the current one in VisualStudio, but overall there's hardly anything you can not do from within the IDE (and the options to adjust the shortcuts within the IDE, Debugger and Editor to your needs are really awesome).

Nicholaz