lua-users home
lua-l archive

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


Have you double checked:

- That the library path includes where the lua libs are
- That you're specifying the right library

Another thing I've noticed causing problems is if you try to link code
generated as "Multithreaded" with code generated as "Single Threaded",
it can go all stupid, telling you it can't find stuff, or that there's
duplicate symbols, etc.

The extern "C" part is vital though. C++ won't link with library
without it. 

==============

On Wed, 6 Nov 2002 19:08:11 -0000
"Keith" <1kat@freeuk.com> wrote:

> 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
>