This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

can't compile objective-c


Any time I try to compile the following:

@interface hello
   - (void) say_hello: (char*) s;
@end

@implementation hello
   - (void) say_hello: (char*) s {
       printf( "%s\n", s );
   }
@end

I get the following error message:


/tmp/cceeQbNJ.o: In function `__objc_gnu_init': hello.m:(.text+0x58): undefined reference to `__objc_exec_class'

How can I fix this?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]