lua-users home
lua-l archive

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


Title: Message
If the Lua project is also compiling as C++ (e.g. /Tp or /TP switch) then you'll also need to put the extern "C" in the lua.h.  The simplest solution, in my opinion, is to put the #ifdef __cplusplus/extern "C" {/#endif bit in "lua.h"
-----Original Message-----
From: owner-lua-l@tecgraf.puc-rio.br [mailto:owner-lua-l@tecgraf.puc-rio.br] On Behalf Of Keith
Sent: Wednesday, November 06, 2002 11:08 AM
To: Multiple recipients of list
Subject: problems linking with lua...

Hello,
 
I am having problems getting my project to link with lua.
I keep getting unresolved extern error messages no matter what I do. "unresolved external symbol _lua_open"
I am using MS VC++ 6.00 and have set my project setting as I normally do to link in statically linked libs.
 
I have also tried using:
 
extern "C"
{
    #include "lua.h"
}
 
but that does not resolve the issue.
 
Any suggestions???
 
Thanks in advance
__________________________________________________________________
Keith A. Taylor
Email: 1kat@freeuk.com