[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: problems lua_baselibopen
- From: "Jens Wessling" <wessling@...>
- Date: Tue, 10 Jul 2001 11:43:26 -0400
Hello,
I think I found the problem. It was a with
the linker. I am using Lua in a C++ app, and the lualibs.h header does not
like to be linked in to C++ as it is. I changed:
#define LUALIB_API
extern
to:
#ifndef LUALIB_API
#ifdef __cplusplus
#define LUALIB_API extern "C"
#elif
#define LUALIB_API extern
#endif
#endif
This allows it to automatically like properly from
C++ as well as from C.
Agradecimentos. 8)
--Jens
----- Original Message -----
Sent: Monday, July 09, 2001 2:57 PM
Subject: Re: problems lua_baselibopen
> > Lua complains that there is an
error in the Main part of the chunk.
>
> What exactly is the
complain? Which version of Lua you are running?
>
> --
Roberto
>