lua-users home
lua-l archive

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


On Mar 6, 2013 8:20 AM, "Muqtheear S" <muqtheear.s@gmail.com> wrote:
> test.dll:
>
> #define LUA_API __declspec(dllexport)
>
> LUALIB_API int luaopen_test (lua_State *L)
>  {
>      printf("Luaopen state\n");
>   luaL_openlib(L, "test", testlib, 0);
>   return 1;
>  }

I don't know much about DLLs, but you defined your dllexport macro as LUA_API while you're using LUALIB_API. Perhaps that's the problem?