|Subject:||Re: [gforth] search lib path for c-library (gforth 0.7.2)|
|Date:||Fri, 26 Apr 2013 17:33:53 +0200|
thanks, I tweaked a little libcc.fs and inserted add-libpath definition.By the way I discovered that the LIBRARY_PATH variable works also.I try to setup simple ffi bindings for opengl & glfwc-library glfw\c #include <GL/glfw.h>s" glfw" add-libs" /usr/local/lib" add-libpathc-function glfw-init glfwInit -- voidc-function gflw-open-window glfwOpenWindow n n n n n n n n n -- nc-function glfw-get-window-param glfwGetWindowParam n -- nc-function glfw-swap-buffers glfwSwapBuffers -- voidend-c-librarybut gforth crashes with a core dump (I let a trace in libcc.fs):@ gforth test-glfw.fslibtool --silent --tag=CC --mode=link gcc -module -rpath ~/.gforth/libcc-named/ ~/.gforth/libcc-named/glfw.lo -o ~/.gforth/libcc-named/glfw.la -L/usr/local/lib -lglfwUnable to find pthread_mutexattr_setkind_np versioned symbol. Aborting.Abort trap: 6.Memory fault(coredump)I don't know very much the process of loading share object in gforth but I observe that the file ~/.gforth/libcc-named/glfw.la is createdOn Fri, Apr 26, 2013 at 3:33 PM, Bernd Paysan <address@hidden> wrote:
Am Freitag, 26. April 2013, 15:12:51 schrieb Cyrille Duret:
> hello everybody,Bug reports please!
> I am looking for a way to indicate the lib path of gcc while gforth is
> compiling a c-library
> I have tried export CFLAGS=-L/usr/local/lib but the linker still complain
> he not find my lib.
> I have seen in the last development version you have added the word
> add-libpath but for now it seems that this version is a bit buggy for
: add-libpath ( c-addr1 u1 node -- c-addr2 u2 )
> Any solution for the 0.7.2 version ?
\ append " -L<nodelib>" to string1
>r s" -L" append r> c-lib-string 2@ append ;
should do it for 0.7.2.
"If you want it done right, you have to do it yourself"
|[Prev in Thread]||Current Thread||[Next in Thread]|