This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
can't compile objective-c
- From: Kendall Bell <kenbell at bellsoft dot net>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 21 Sep 2006 21:56:45 -0500
- Subject: 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?