lua-users home
lua-l archive

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

I think you are compiling a C++ program. Lua is written for C so you have to
do the following

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

main ()
	lua_open ();
	lua_close ();


-----Ursprüngliche Nachricht-----
[]Im Auftrag von George Papaioannou
Gesendet: Donnerstag, 2. November 2000 16:17
An: Multiple recipients of list
Betreff: Visual C++ ver 5 Link Error

When I try to compile a win32 app
with lua embedded in it I get the error message {unresolved external symbol
"void __cdecl lua_open(void)} in Linking stage

All I do is that in win32 console app:

#include "lua.h"


and declaring the lua.lib in the settings/link tab.

what's wrong ?

Can I use the DLL files instead ?

PS: I am new in the Visual C but I have a great experience in Dos/Pascal

Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
Version: 6.0.177 / Virus Database: 86 - Release Date: 7/8/2000