From b577b7119aa1f57c4db7fd254c2b5b197e7451d2 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 5 Oct 2014 21:15:07 +0200 Subject: must load all symbols of a C++/Lua module, otherwise the lua_open function can't be called from the Lua VM during module initialization --- include/module/ModuleLoader.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/module/ModuleLoader.hpp b/include/module/ModuleLoader.hpp index 6eb9079..21905ec 100755 --- a/include/module/ModuleLoader.hpp +++ b/include/module/ModuleLoader.hpp @@ -50,7 +50,7 @@ class BaseModuleLoader { for( std::vector::const_iterator it = files.begin( ); it != files.end( ); it++ ) { #ifndef _WIN32 - m.handle = dlopen( it->c_str( ), RTLD_NOW | RTLD_LOCAL ); + m.handle = dlopen( it->c_str( ), RTLD_NOW | RTLD_GLOBAL ); #else m.handle = LoadLibrary( it->c_str( ) ); #endif -- cgit v1.2.3-54-g00ecf