/home/mschick/Progs/prog1.m:6: undefined reference to `NSLog'
./shared_obj/prog1.o:(.data.rel+0x0): undefined reference to
`__objc_class_name_NSAutoreleasePool'
collect2: ld returned 1 exit status
make[1]: *** [shared_obj/prog1] Error 1
make: *** [prog1.all.tool.variables] Error 2
Here is my code:
#import <Foundation/Foundation.h>
int main(int argc, const char * argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSLog(@"Programming is fun!!!!");
[pool release];
return 0;
}
Here is my GNUmakefile:
include $(GNUSTEP_MAKEFILES)/common.make
TOOL_NAME = prog1
prog1_OBJC_FILES = prog1.m
include $(GNUSTEP_MAKEFILES)/tool.make
I am new to GNUSTEP and im not sure if I have the make file setup
right.....could you please help me?
Thanks,
Mike
_______________________________________________
Help-gnustep mailing list
Help-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnustep