lua-users home
lua-l archive

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


extern "C" {
#include "lua.h"
}

?

----- Original Message -----
From: "John S. Miley" <jmiley69@bellsouth.net>
To: "Multiple recipients of list" <lua-l@tecgraf.puc-rio.br>
Sent: Wednesday, November 21, 2001 4:31 PM
Subject: Silly question


>
> Sorry to bother you folks, but I'm having a bit of trouble linking a
> skeleton app I'm working on, and the (I'm sure) obvious answer is eluding me
> at the moment.
>
> I've specified lua.lib and lualib.lib to be linked in with the app, and am
> #including "lua.h"; upon compiling, I'm getting this error:
>
> Linking...
> LuaTest.obj : error LNK2001: unresolved external symbol "void __cdecl
> lua_close(struct lua_State *)" (?lua_close@@YAXPAUlua_State@@@Z)
> LuaTest.obj : error LNK2001: unresolved external symbol "struct lua_State *
> __cdecl lua_open(int)" (?lua_open@@YAPAUlua_State@@H@Z)
> Debug/LuaTest.exe : fatal error LNK1120: 2 unresolved externals
>
> Thanks for your time!
>
> --jsm
>
>
>