[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GNUStep makefile issues
From: |
Mike Schick |
Subject: |
GNUStep makefile issues |
Date: |
Sat, 31 Jan 2009 23:26:16 -0500 |
When trying to use the GNUmakefile i keep getting the following error:
Making all for tool prog1...
Compiling file prog1.m ...
Linking tool prog1 ...
./shared_obj/prog1.o: In function `main':
/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
- GNUStep makefile issues,
Mike Schick <=