[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Re: Using Lua in a C(++) program
- From: RLake@...
- Date: Fri, 13 Jun 2003 18:35:32 -0500
> Why not
> #ifdef __cplusplus
> #define LUA_API extern C
> #else
> #define LUA_API extern
> #endif
How about:
CFLAGS="-x c++" make
:)
(By the way, to get this to work, I had to put change three lines
in etc/saconfig.c; the version of the readline library on my
system uses char* instead of const char* and gcc gave an error
in c++ mode, rather than the usual warning.)