Re: Can't use dynamic-link with any shared object file

2016-12-26 Thread Eli Zaretskii
> 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

Re: Can't use dynamic-link with any shared object file

2016-12-26 Thread saffronsnail
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

Re: Can't use dynamic-link with any shared object file

2016-12-26 Thread spk121
‎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

Re: Can't use dynamic-link with any shared object file

2016-12-26 Thread Chris Vine
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

Re: Can't use dynamic-link with any shared object file

2016-12-26 Thread Jan Wedekind
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

Can't use dynamic-link with any shared object file

2016-12-26 Thread saffronsnail
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

Re: nyacc 0.73.0 released

2016-12-26 Thread Matt Wette
> 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