lua-users home
lua-l archive

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


If you're using lua from C++ and getting link time errors about functions
not being there, the most likely problem is you forgot to do something like
this:

extern "C" {
#include <lua.h>
}

The only other obvious problem would be you forgot a library or the library
path doesn't include the place where the lua libraries are, but undoubtedly
you've already checked those out.

----- Original Message -----
From: "Denis Lamarche" <brainwav@hotmail.com>
To: "Multiple recipients of list" <lua-l@tecgraf.puc-rio.br>
Sent: Monday, May 07, 2001 9:33 PM
Subject: Using the lua Dll's


> Hi, im trying to get lua to work with my compiler, but evry time I
> compile/link it tells me that theres an undefined reference to lua_open
and
> other lua functions.  I have the lua dll's, lib's and def files as well as
> all the include's.
>
> Do I need to import something from the dll's?  I am linking the .lib files
> to my program.  I know this is not the best place to ask this question,
but
> I dont know where else to go.
>
> I am using ming32 for windows (a Windows port of Gcc, I think) and Dev-C++
> as an IDE.
>
> Any help will be apreciated.
>
> Denis Lamarche
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>