lua-users home
lua-l archive

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


benjamin sunshine-hill wrote:

I'm guessing you didn't encapsulate the Lua header file(s) in extern "C".

This is such a common problem. Why is it that the lua headers don't come with the standard "if you include me in C++, I'll help you with the extern" trick?

#ifdef __cplusplus
extern"C" {
#endif
... header goes in here
#ifdef __cplusplus
}
#endif

Enno.