[TriLUG] gcc on OS X
Greg Brown
gwbrown1 at gmail.com
Fri Jan 13 13:09:47 EST 2006
Okay, so I have my new Mac. With this Mac I also had Xcode Tools that
contained gcc4.0.pkg and gcc3.3.pkg. I install gcc4.0.pkg fully expecting
gcc to be installed somewhere, but it was not. There was, however, a file,
gcc4.0, installed in /usr/bin. When I try to compile a helloworld.c I get
some errors:
#include<stdio.h>
main()
{
printf("\nHello World\n");
}
/usr/bin/gcc-4.0 ./hello.c
./hello.c:1:18: error: stdio.h: No such file or directory
./hello.c: In function 'main':
./hello.c:5: warning: incompatible implicit declaration of built-in function
'printf'
Obviously something is wrong. Not only do I not have a "gcc" that can be
found by a configure file but the gcc-4.0 won't even complie a hello world
so, I would assume, that if I created a symbolic link in /usr/local/bin for
gcc pointing to /usr/bin/gcc-4.0 it wouldn't work anyway.
So I'm scratching my head. So far the only pages at apple.com I can find
that would help are in Japanese.
Any ideas?
Greg
More information about the TriLUG
mailing list