help-gnustep
[Top][All Lists]
Advanced

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

Re: Using the libobjc patch


From: Adam Fedor
Subject: Re: Using the libobjc patch
Date: Wed, 29 Jan 2003 11:42:13 -0700


On Wednesday, January 29, 2003, at 11:32 AM, Graham Lee wrote:

Adam Fedor wrote:
On Wednesday, January 29, 2003, at 10:12 AM, Graham Lee wrote:
So far I've built gnustep-make 1.5.0, sourced ~/GNUstep/[...]/GNUstep.sh, built gnustep-objc and installed it into my own ~/GNUstep hierarchy. But now I need to be able to build and link an objc program using the new library, to prove its usefulness. This is where I'm stuck.

After installing gnustep-objc, you should re-configure and re-build gnustep-make (and re-source GNUstep.sh). GNUstep Make will pick up on the fact that you have a new installed version of libobjc and use that.
This does work - thanks. However I'd also like to be able to use the patched libobjc to create "quick 'n' dirty" Objective-C programs; the equivalent of typing `gcc myfile.m -lobjc' where myfile.m is based on plain ol' Object and libobjc.a is a static (and preferably working) object. Is this possible?


You should be able to do that, if you set the -I and -L flags with gcc:

-I[...]GNUstep/System/Headers -L[...]GNUstep/System/Libraries/sparc/solaris2.7

and have LD_LIBRARY_PATH setup correctly (as it is done by GNUstep.sh).





reply via email to

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