[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pb linking with libobjc.a under msys
From: |
Adam Fedor |
Subject: |
Re: pb linking with libobjc.a under msys |
Date: |
Mon, 9 Jun 2003 08:44:54 -0600 |
Try putting the -lobjc at the end:
gcc HelloObjC.c main.o -lobjc
On Monday, June 9, 2003, at 04:41 AM, Fred Klein wrote:
I just installed Install-GNUstep-Development-Environment-0.4.1.exe
from
ftp://ftp.gnustep.org/pub/gnustep/windows
(many thanks to Adam Fedor for the link)
and tried to compile and link 2 Objective-c (.m) files. Compilation
was ok.
Here's the error when linking.
$ gcc -lobjc HelloObjC.o main.o
HelloObjC.o(.text+0x15):HelloObjC.m: undefined reference to
`__objc_exec_class'
HelloObjC.o(.data+0xd4):HelloObjC.m: undefined reference to
`__objc_class_name_Object'
main.o(.text+0x3f):main.m: undefined reference to `objc_get_class'
main.o(.text+0x4a):main.m: undefined reference to `objc_msg_lookup'
main.o(.text+0x60):main.m: undefined reference to `objc_msg_lookup'
main.o(.text+0x8f):main.m: undefined reference to `__objc_exec_class'
I've tried to copy libobjc.a and libiconv.a from
C:\GNUstep\System\Libraries\ix86\mingw32
into
C:\GNUstep\Development\msys\1.0\mingw\lib
but that did not help
Thanks in advance for your assitance.
Regards - Fred
_______________________________________________
Help-gnustep mailing list
Help-gnustep@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnustep