Re: using GSL with cblas via FFI

2012-06-03 Thread cong gu
On Sun, Jun 3, 2012 at 11:15 PM, Thien-Thi Nguyen wrote: > () cong gu > () Sun, 3 Jun 2012 17:04:29 -0500 > >   I found libtool offers a way to make a shared library globally >   available.  So I wrote a patch that provides `dynamic-link-global'. >   A call like `(dynamic-link-global "libgslcblas

Re: using GSL with cblas via FFI

2012-06-03 Thread Thien-Thi Nguyen
BTW, i made a similar design decision in Guile 1.4.x (see below), which now i regret, so that's why i comment: to selfishly keep you away from my regrets so that you can find your own. :-D [cc trimmed] SCM_DEFINE (scm_dynamic_link, "dynami

Re: using GSL with cblas via FFI

2012-06-03 Thread Thien-Thi Nguyen
() cong gu () Sun, 3 Jun 2012 17:04:29 -0500 I found libtool offers a way to make a shared library globally available. So I wrote a patch that provides `dynamic-link-global'. A call like `(dynamic-link-global "libgslcblas")' should make things work. I don't know whether it is por

Re: using GSL with cblas via FFI

2012-06-03 Thread cong gu
I found libtool offers a way to make a shared library globally available. So I wrote a patch that provides `dynamic-link-global'. A call like `(dynamic-link-global "libgslcblas")' should make things work. I don't know whether it is portable, though. Documentation of libtool mentioned that not al

Re: using GSL with cblas via FFI

2011-03-31 Thread Andy Wingo
On Sat 26 Mar 2011 10:53, Johan Hidding writes: > Hello Ludo', > I had a chat with Mark Weaver on IRC; he could reproduce the error. > The output shows basic GSL working, but GSL+CBLAS failing. I found a > way to -combine the static versions into a single shared library using > a trick I found on

Re: using GSL with cblas via FFI

2011-03-26 Thread Johan Hidding
Hello Ludo', I had a chat with Mark Weaver on IRC; he could reproduce the error. The output shows basic GSL working, but GSL+CBLAS failing. I found a way to -combine the static versions into a single shared library using a trick I found on StackOverflow: > gcc -shared -o c.so -Wl,--whole-archive l

Re: using GSL with cblas via FFI

2011-03-25 Thread Ludovic Courtès
Hi Johan, Johan Hidding writes: > I'm trying to use GSL through the FFI, but the program is not linked > to libgslcblas, so it cannot find some functions. Attached a minimal Can you please post your Guile session including the error message that you get? Thanks, Ludo’.

using GSL with cblas via FFI

2011-03-24 Thread Johan Hidding
Hi, I'm trying to use GSL through the FFI, but the program is not linked to libgslcblas, so it cannot find some functions. Attached a minimal example. Cheers, Johan (use-modules (system foreign) (rnrs bytevectors)) (define libgsl (dynamic-link "libgsl")) (define libgslcblas (dynamic-link "