libobjc With --enable-c-cpplib

Dave Brolley brolley@cygnus.com
Tue Oct 5 14:49:00 GMT 1999


Hi,

I'm having a problem building linking.m in libobjc with the cpplib
enabled xgcc. It looks like the '@' character in '@class' is being
returned as an identifier. I'm not sure when this started happening,
since I haven't built with --enable-c-cpplib for a while. Does this
have anything to do with the discussion we had about what to do with
random illegal characters?

make[1]: Entering directory
`/notnfs/brolley/comp/egcs/cpplib/H-i686-pc-linux-gnu/O-i686-pc-linux-gnu/i686-pc-linux-gnu/libobjc'

/notnfs/brolley/comp/egcs/cpplib/H-i686-pc-linux-gnu/O-i686-pc-linux-gnu/gcc/xgcc
-B/notnfs/brolley/comp/egcs/cpplib/H-i686-pc-linux-gnu/O-i686-pc-linux-gnu/gcc/
-B/notnfs/brolley/comp/egcs/cpplib/H-i686-pc-linux-gnu/i686-pc-linux-gnu/bin/
-fgnu-runtime -c -o linking.o -I.
-I/home/brolley/comp/egcs/egcs/libobjc   -g -O2 -DIN_GCC
-I/home/brolley/comp/egcs/egcs/libobjc/objc
-I/home/brolley/comp/egcs/egcs/libobjc/../gcc
-I/home/brolley/comp/egcs/egcs/libobjc/../gcc/config -I../../gcc
-I/home/brolley/comp/egcs/egcs/libobjc/../include
/home/brolley/comp/egcs/egcs/libobjc/linking.m
In file included from
/home/brolley/comp/egcs/egcs/libobjc/objc/Object.h:30,
                 from
/home/brolley/comp/egcs/egcs/libobjc/linking.m:28:
/home/brolley/comp/egcs/egcs/libobjc/objc/objc.h:141: invalid
identifier `@'
/home/brolley/comp/egcs/egcs/libobjc/objc/objc.h:141: parse error
before `class'
/home/brolley/comp/egcs/egcs/libobjc/objc/objc.h:141: warning: data
definition has no type or storage class
In file included from
/home/brolley/comp/egcs/egcs/libobjc/linking.m:28:
/home/brolley/comp/egcs/egcs/libobjc/objc/Object.h:37: invalid
identifier `@'
/home/brolley/comp/egcs/egcs/libobjc/objc/Object.h:37: parse error
before `interface'
/home/brolley/comp/egcs/egcs/libobjc/objc/Object.h:38: syntax error
before `{'
/home/brolley/comp/egcs/egcs/libobjc/objc/Object.h:43: method
definition not in class context
make[1]: *** [linking.o] Error 1
make[1]: Leaving directory
`/notnfs/brolley/comp/egcs/cpplib/H-i686-pc-linux-gnu/O-i686-pc-linux-gnu/i686-pc-linux-gnu/libobjc'

make: *** [all-target-libobjc] Error 2
make: Leaving directory
`/notnfs/brolley/comp/egcs/cpplib/H-i686-pc-linux-gnu/O-i686-pc-linux-gnu'



Dave



More information about the Gcc-bugs mailing list