lua-users home
lua-l archive

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


Christophe Gimenez wrote:
> 
> Okay I found by my self... My test was a .cpp file and thus treated by the c++ compiler.
> 
> But if I want to call lua functions from a C++ program ?
> 
> do I need :
> 
> extern "C"
> {
>         #lua includes
> }
> 

Yes, cause Lua is straight C - several people have made different C++
wrappers but they are not part of the official distribution!

/Erik