help-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: statically link objective C program


From: Adam Fedor
Subject: Re: statically link objective C program
Date: Fri, 4 Jun 2004 16:18:07 -0600


On Jun 4, 2004, at 11:09 AM, Vladimir Leven wrote:

If someone can help with the following problem, I'd appreciate it. I am trying to generate a statically linked executable. Building a dynamically linked executable works, but when I add the "-static" flag to my linker, it fails, saying gnustep-base cannot be found:

[root@localhost ObjCRTUDemo]# make
gcc -o WRXScheduler main.o WRXScheduler.o -lgnustep-base -lobjc -L/usr/GNUstep/System/Library/Libraries -static
/usr/bin/ld: cannot find -lgnustep-base
collect2: ld returned 1 exit status
make: *** [WRXScheduler] Error 1


Do you have a statically linked gnustep-base library (gnustep-base.a)? Should get this with

make shared=no

although I'm not even sure static GNUstep libraries work.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]