Menu

#2 Compilation faults on MSVC 2008 express (simple solution)

open
nobody
None
5
2012-04-22
2012-04-22
PJin
No

Compillation faults on MSVC 2008 express.

There was one place with errors. It was function luacv_sighandler.
The errors was about some specific defenitions, such as LONG, LPEXCEPTION_POINTERS.
And the only change I made was line
#inculde \"windows.h\"

Like this

static lua_Debug luacv_debug;
static lua_State *luacv_globalstack;

#if defined(WIN32) || defined(WIN64)

#include \"Windows.h\" // inserted line for fix compillation

static LONG __stdcall luacv_sighandler(LPEXCEPTION_POINTERS exceptionPtrs)
{
#else
static void luacv_sighandler(int signum)
{
signum=signum;//to avoid warnings
#endif
lua_getinfo(luacv_globalstack,\"nS\",&luacv_debug);
char line[255];
char sep[255];

Discussion


Log in to post a comment.