[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: dlsym difference between Lua and Luajit ?
- From: Gaspard Bucher <gaspard@...>
- Date: Sat, 2 Feb 2013 17:44:58 +0100
I am trying to dynamically load a symbol with dlsym. Loading works with plain lua but not with luajit.
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 ?
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...