LUA5 Link errors..sorry guys...

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

LUA5 Link errors..sorry guys...

Dave Owens
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!

Reply | Threaded
Open this post in threaded view
|

RE: LUA5 Link errors..sorry guys...

Dave Owens
Ahh bugger..

The moral is...download the source yourself, and not use what someone else
has hacked up...sorry...ignore me.

-----Original Message-----
From: Dave Owens [[hidden email]] 
Sent: 18 September 2003 10:47
To: Lua list
Subject: LUA5 Link errors..sorry guys...


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!