This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
state of Apple's objc compiler vs gcc 3.1
- To: gcc at gcc dot gnu dot org
- Subject: state of Apple's objc compiler vs gcc 3.1
- From: Aurelien <aurelien at fractals dot be>
- Date: Fri, 5 Oct 2001 12:08:53 +0200
Hi,
It's me again, struggling miserably with Apple's compiler. I have a
project that compiles ok with gcc 3.1 and GNUstep:
http://objc-jxta.jxta.org/source/browse/objc-jxta/
Now, compiling it under Mac OS X is another story. I'd love to however,
since this project is my hobby, and I have an iBook which I could use to
work on it at weekends.
Note that I've just upgraded to 10.1 (this including for the Developer
Tools).
I'd really appreciate to have the differences between 10.1's objc
compiler and gcc 3.1 objc compiler pointed out:
1) when I try to compile my project under PB, I get a bunch of parse
errors of the type "parse error before '*'", indicating that I am
declaring a new variable in the body of a method (not at the start of
it, which is mandatory for standard C);
2) does 10.1 allow forward references to protocols ? (always the same
question ;-)
I also tried to compile the cvs version of gcc on my 10.1 OSX, and here
is the end of the output, following 'make bootstrap'. I have run
'/Users/candide/checkout/gcc/configure --prefix=/usr/local/gcc
--enable-languages=c,c++,objc' before:
/Users/candide/checkout/gcc/gcc/builtin-attrs.def:149:
`ATTR_FORMAT_PRINTF_3_0' undeclared (first use in this function)
/Users/candide/checkout/gcc/gcc/builtin-attrs.def:150:
`ATTR_FORMAT_SCANF_1_0' undeclared (first use in this function)
/Users/candide/checkout/gcc/gcc/builtin-attrs.def:151:
`ATTR_FORMAT_SCANF_2_0' undeclared (first use in this function)
/Users/candide/checkout/gcc/gcc/builtin-attrs.def:164:
`ATTR_FORMAT_STRFMON_3_4' undeclared (first use in this function)
make[2]: *** [c-common.o] Error 1
make[1]: *** [stage1_build] Error 2
make: *** [bootstrap] Error 2
Any idea ?
Thanks in advance,
Aurélien