lua-users home
lua-l archive

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


Hi everyone,

I am trying to dynamically load a symbol with dlsym. Loading works with plain lua but not with luajit.

C code:

    void *func_ptr = dlsym(RTLD_DEFAULT, "cdn_rawc_simple_network");

This function is called from inside the "core.so" dlib (mac os X) :

> nm core.so
...
00000000000063e0 T _cdn_rawc_simple_network

Also using ffi causes the same error. Are there any flags on how dlopen works in luajit that may differ with Lua ? Has anyboby got an idea on a workaround ?

Cheers,

                                                               Gaspard

PS: this is part of the final run for the show "boats to nowhere" where we use a lot of Lua to control interactivity, OpenGL rendering and bullet simulations to create animals. If you are around Lausanne...