Re: GNUStep makefile issues
Nicola Pero <[email protected]> Sun, 1 Feb 2009 17:11:33 +0100
| Newsgroups | gmane.comp.lib.gnustep.user |
|---|---|
| Message-ID | <[email protected]> |
On 1 Feb 2009, at 05:26, Mike Schick wrote:
> ./shared_obj/prog1.o: In function `main':
Hi Mike
yes, it's not clear what's wrong ... your code looks good. It must be
a problem in your
gnustep setup. :-(
Speaking of which, you must be using a very old version of gnustep-
make ... the 'shared_obj'
directory was removed in Summer 2006 - I think that the last release
that had it was gnustep-make
1.13.0 (we're now at 2.0.8, and there's a big jump from 1.x to 2.x). ;-)
It might be a good idea to try and install a more recent version of
gnustep ... it's hard for us
to help diagnose problems in very old packages.
Thanks
>
> /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
> [email protected]
> http://lists.gnu.org/mailman/listinfo/help-gnustep