lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: The C API used from C++
From
: Michal Kottman <michal.kottman@
...
>
Date
: Thu, 29 Jan 2015 11:09:19 +0100
On 29 January 2015 at 10:21, Geoff Leyland
<
geoff_leyland@fastmail.fm
>
wrote:
You could try wrapping an ‘extern “C” { … }’ around your #include “lua….h”s. That might help?
The Lua source package also contains a file "lua.hpp", whose sole content is this:
extern "C" {
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
}
You can include "lua.hpp" in your source code, or just copy this content to your .cc file.
References
:
The C API used from C++
,
Dirk Laurie
Re: The C API used from C++
,
Geoff Leyland
Prev by Date:
Re: The C API used from C++
Next by Date:
Re: The C API used from C++
Previous by thread:
Re: The C API used from C++
Next by thread:
Re: The C API used from C++
Index(es):
Date
Thread