[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Problem with Lua and DJGPP
- From: "Sergio Alvares R. de S. Maffra" <sam@...>
- Date: Tue, 10 Apr 2001 10:40:15 -0300
when I have included the headerfiles of lua and the linked library in the
library-options of RHIDE I cannot compile source-codes witch have the
extension .CC oder .CPP -
The compiler doesn't find the references to the lua-functions witch a
declared in the LUA.H.
hen I'm using a .C file - everything works fine.
I've never used DJGPP, but in Visual C it will only link correctly if you
enclose the lua.h include directive in an extern "C" block...
#extern "C"
{
#include <lua.h>
}
Hope it solves the problem,
Sergio