lua-users home
lua-l archive

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


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 [mailto:DaveO@climax.co.uk] 
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!