views:

166

answers:

3

Hi All,

For C++/Objective-C Mac, Windows, Linux

Most robust compiler/build system?

There is GCC and MakeFiles.

Intel makes Compilers, but they don't do Objective-C right? I have read that Intel built apps are 30% faster in the math and graphics arenas.

MinGW is Windows only?

LLVM/Clang doesn't seem prime-time ready.

I dont know if Borland makes anything.

I am not looking for an IDE as I prefer command-line building and a text editor.

I guess I am looking for the best set of tools that I can use on all platforms. So I am not using Tool A on Platform A and Tool B on Platform B, etc.

+1  A: 

Qt is a good system for cross platform development in C++ (with bindings in many other languages). I've developed several pretty intense applications using Qt for everything from unicode strings, STL replacements, and, of course, GUIs and making it work on mac, linux, and windows has never been an issue. Generally, I use GCC for Mac and Linux and VC++ for Windows. For simple cases, the basic qmake Makefile utility works fine, but for more complex situations, cmake is a good solution. I understand that changing compilers for platforms is generally something that should be avoided, but with Qt the switch is barely noticeable.

MinGW is just GCC for windows with UNIXy stuff built in (as I recall), but it has always given me trouble. Windows and *nix are different enough that using the native compiler is generally easier in my experience.

Ben Hughes
A: 

If you want to try Objective-C and stay cross-platform, you might look at Cocotron. gcc has been able to compile Objective-C for quite some time, and as for Cocotron:

The purpose of the project is to provide an easy to use cross-platform solution for Objective-C development. In particular, source code level compatibility with recent versions of Apple's frameworks (OS X 10.4 and 10.5).

Jared Oberhaus
+1  A: 

My personal favorite is SCons with Google's swtoolkit for cross platform compilation

Grant Limberg
@Grant - I am looking at Scons and it looks nice! I am trying to install on OS X 10.5.7 and I run python setup.py install and I dont think that it is working. Can we chat of Stack Overflow? Me: [email protected]
make sure you're running 'sudo setup.py install' so you have the correct permissions to install it.
Grant Limberg