[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Using Lua in a C(++) program
- From: Johannes Hager <hager.j@...>
- Date: Thu, 12 Jun 2003 14:27:23 +0200
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.