lua-users home
lua-l archive

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


I'm trying to create a wrapper Lib for my c++ project .
I include LUA as c source in the lib.
I extern "C" the headers. 

But, I get these link errors...(VC7)

MorfD.Lib(Morf.obj) : error LNK2001: unresolved external symbol
_luaopen_loadlib
MorfD.Lib(Morf.obj) : error LNK2001: unresolved external symbol
_luaopen_debug
MorfD.Lib(Morf.obj) : error LNK2001: unresolved external symbol
_luaopen_math
MorfD.Lib(Morf.obj) : error LNK2001: unresolved external symbol
_luaopen_string
MorfD.Lib(Morf.obj) : error LNK2001: unresolved external symbol _luaopen_io
MorfD.Lib(Morf.obj) : error LNK2001: unresolved external symbol
_luaopen_table
MorfD.Lib(Morf.obj) : error LNK2001: unresolved external symbol
_luaopen_base
MorfD.Lib(Morf.obj) : error LNK2019: unresolved external symbol
_luaL_loadfile referenced in function "public: int __thiscall
Morf::Load(char const *,bool)" (?Load@Morf@@QAEHPBD_N@Z)

These functions are from withen the cpp libs files..

IF I change the LUA source to cpp(which I don't want to do) I compile fine..

Help!