discuss-gnustep
[Top][All Lists]
Advanced

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

Re: loading libs into greg


From: Richard Frith-Macdonald
Subject: Re: loading libs into greg
Date: Thu, 27 Jun 2002 07:55:45 +0100

On Wednesday, June 26, 2002, at 08:59 PM, Björn Gohla wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

i want to be able to test all the non-visual components of my application using greg, so i figure, put all of them into a library subproject. how then
do i load that library into greg? the greg documentation tells me to use
gstep-guile to load libs, the documentation of which in turn is versy terse.

Unless you are talking about bundles, in which case gstep-guile lets you use NSBundle to load them eg. ([] "NSBundle" bundleWithPath: ($$ "MyTest.bundle"))),
you must either -

1. for static libraries, causing both guile and the code in the library to be linked
into the same execuable.
or
2. for dynamic libraries, use the standard guile dynamic-link procedure to load
the library.  eg. (dynamic-link "/usr/local/mytestlib.so")

Then gstep-guile will let you use any class in your bundle -
eg. (define instance ([] "ClassFromBundle" new))




reply via email to

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