lua-users home
lua-l archive

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

On 29 January 2015 at 10:21, Geoff Leyland <> 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.