> Date: Mon, 26 Dec 2016 22:24:21 + (GMT)
> From: Jan Wedekind
> Cc: guile-user@gnu.org
>
> I think "libc" is normally loaded already. E.g. the C function "abs" can
> be accessed as follows:
>
> (define main (dynamic-link))
> (define cabs (pointer->procedure long (dynamic-func "ab
On 12/26/2016 at 2:24 PM, "Jan Wedekind" wrote:I think "libc" is
normally loaded already. E.g. the C function "abs" can
be accessed as follows:
(define main (dynamic-link))
(define cabs (pointer->procedure long (dynamic-func "abs" main)
(list long)))
(cabs -42)
; 42
Regards
‎Usually the strace command or setting the LD_DEBUG=all environment variable
can provide useful info. They often reveal that I should have the
LD_LIBRARY_PATH differently.
An annoyance of dynamic linking is that you also need to make sure that each
shared object's own shared object dependencies
On Mon, 26 Dec 2016 09:25:00 -0800
saffronsn...@hushmail.com wrote:
> Hello,
> I am working on a project that involves writing some core
> functionality in C/C++ and composing behavior in Guile (as I
> understand it, this one of the ways that Guile was intended to be
> used). However, I cannot loa
On Mon, 26 Dec 2016, saffronsn...@hushmail.com wrote:
Hello,
I am working on a project that involves writing some core
functionality in C/C++ and composing behavior in Guile (as I
understand it, this one of the ways that Guile was intended to be
used). However, I cannot load any libraries with d
Hello,
I am working on a project that involves writing some core
functionality in C/C++ and composing behavior in Guile (as I
understand it, this one of the ways that Guile was intended to be
used). However, I cannot load any libraries with dynamic-link. I first
encountered this with my code, but
> On Dec 25, 2016, at 11:29 PM, Jan Nieuwenhuizen wrote:
>
> Nyacc is awesome! I wrote a proof of concept ANSI C parser (as small as
> it can possibly get) and delayed further work on that. Ludovic advised
> me to look into Nyacc; it took me quite a bit of work to mature Mes into
> a state wer