[Top][All Lists]

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

Re: statically linking in srfi modules

From: Andy Wingo
Subject: Re: statically linking in srfi modules
Date: Fri, 08 Feb 2013 12:27:13 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

On Fri 08 Feb 2013 10:25, Richard Shann <address@hidden> writes:

> On Fri, 2013-02-08 at 09:24 +0000, Richard Shann wrote:
>> Is it possible to statically link in the srfi modules?
>> (load-extension "libguile-srfi-srfi-1-v-3" "scm_init_srfi_1")
>> fails.

You can link it in I think, but then you will need to call

  scm_c_register_extension ("libguile-srfi-srfi-1-v-3", "scm_init_srfi_1",
                             scm_init_srfi_1, NULL)

somewhere in your C code.

> Oh - sorry, I should have mentioned, we are still on guile 1.8 (perhaps
> for no good reason?), if that affects the answer.

Same answer.  Guile 2.0 is much faster if that matters to you :)


reply via email to

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