[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: AW: Visual C++ ver 5 Link Error
- From: "Dirk Ringe" <dirk.ringe@...>
- Date: Thu, 2 Nov 2000 16:34:30 +0100
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 ();
}
Dirk
-----Ursprüngliche Nachricht-----
Von: owner-lua-l@tecgraf.puc-rio.br
[mailto:owner-lua-l@tecgraf.puc-rio.br]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"
main()
{
lua_open();
lua_close();
}
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
Thanx.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.177 / Virus Database: 86 - Release Date: 7/8/2000