> > My best guess: you need > > extern "C" { > > ... > > } > > around your #include of "lua.h", as your lua library has been compiled > > as C, not C++. (Or you could recompile it as C++, if you prefer.) Or just use lua.hpp from etc.