Re: Problem loading c++ library
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Problem loading c++ library
- From: Mark Hamburg <mhamburg@...>
- Date: 2003年9月25日 08:29:06 -0700
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;
> }