lua-users home
lua-l archive

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


This i have done before and it doesnt solve my problem. Thats the point why i 
no more sech in the Faq, bedcause i have done all that.

> 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.