| 
         | 
    ||
        
  | 
    
You probably need:
    extern "C"
instead of:
    LUALIB_API
You might need an underscore in front of the function name when loading it.
Mark
on 9/25/03 6:52 AM, Luis Carvalho at carvalho@fritz.cfm.brown.edu wrote:
> LUALIB_API int foo_open_lib (lua_State *L)
> {
> luaL_openlib(L, "Foo", foolib, 0);
> return 1;
> }