discuss-gnustep
[Top][All Lists]
Advanced

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

Re: loading libs into greg


From: Björn Gohla
Subject: Re: loading libs into greg
Date: Fri, 28 Jun 2002 20:43:24 +0200

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

On Thursday 27 June 2002 08:55, Richard Frith-Macdonald wrote:
[...]
> 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))
[...]

thanks, though it does not quite work yet

this is my test.scm:
(use-modules (languages gstep-guile))
([] "NSBundle" bundleWithPath: ($$              
"/home/bgohla/Source/rhapsody/Rhapsody/RCompBun/RCompBun.bundle"))
(greg-expect-pass "instantiate bundled class"
                  (begin
                    (define obj1 ([] "StackModel" new))
                    (gstep-bool ([] obj1 isKindOfClass: ([] "StackModel" 
class)))
                    )
)

running greg on it returns:
Exception: (error not a symbol or string . StackModel)
UNRESOLVED: instantiate bundled class

                === Summary of all tests ===

# of unresolved testcases  1

i would suspect the bundle is not correctly loaded, but how can i find out?
- -- 
Article 15 from the Universal Declaration of Human Rights
    1. Everyone has the right to a nationality.
    2. No one shall be arbitrarily deprived of his nationality nor
       denied the right to change his nationality.
pub  1024D/834F4976 2001-01-07 Björn Gohla (Wissenschaftler, Weltbürger) 
<b.gohla@gmx.de>
     Key fingerprint = 9FF4 FEDA CCDF DA0E 14D5  8129 6C14 3C39 834F 4976
sub  1024g/29571FE2 2001-01-07
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9HK5SbBQ8OYNPSXYRAm+DAJ9BE33NwlNOtQZCZn2UzM4ecFl7YgCghaxr
y9LXXKtb/bbn8JBholtZako=
=9i4z
-----END PGP SIGNATURE-----



reply via email to

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