I've been using GCC both to develop my palm applications and to write some
PC desktop code for my application. I've had several users ask me about a
Macintosh version, so I've been investigating what it would take to be able
to use GCC to compile for the Macintosh. I've been reading through the GCC
documentation, and have gotten thoroughly confused. For the PC, I compile my
code with a commad like:
gcc MyApp.c -o MyApp.exe -lm
and everything works just fine. I saw in the GCC documentation that you can
use an option:
-b target
to specify that GCC should function as a cross-compiler for the specified
target machine. I was hoping to find something in the documentation like "-b
macintosh", but no luck. About the closest I saw was to specify "powerpc".
But when I tried:
gcc -b powerpc MyApp.c -o MyApp.exe -lm
I get an error: "installation problem, cannot exec 'cpp': No such file or
directory". I didn't really expect this to work, but a guy can hope, eh? :-)
Anyway, can anybody tell me (or point to the directions on) how to get GCC
to cross-compile for the Macintosh platform?
Thanks a lot in advance to anyone who can help!
Tom Ward