Tazzonny
The Bestest
- Joined
- Feb 8, 2009
- Messages
- 161
- Reaction score
- 2
Edit: If you happen to solve/have solved any compiling issue not posted on here please feel free to send me a PM and I'll add it.
So compiling has been giving me such a hard time lately so I would like to share solutions to some problems I came across.
Few important things beforehand:
*MSVC++ 2010 Express DOES NOT support compiling for 64 bits.
#1
Error:
Solution:
Save this as luajit.h and put it in your include folder
Credits to: Myself
#2
Error:
Solution:
Upgrade your boost library to 1_51_0
I used the installer from Download Boost Library Here - BoostPro
Credits to: Loney
#3
Error:
Solution:
N/A
Credits to: N/A
#3
Error:
Solution: Downgrade .netFramework from 4.5 to 4.0
Credits: Myself
That's it for now.
Hope this helps someone.
So compiling has been giving me such a hard time lately so I would like to share solutions to some problems I came across.
Few important things beforehand:
*MSVC++ 2010 Express DOES NOT support compiling for 64 bits.
#1
Error:
PHP:
Cannot open include file: 'luajit.h': No such file or directory
Save this as luajit.h and put it in your include folder
Code:
#ifndef _LUAJIT_H
#define _LUAJIT_H
#include "lua.h"
#define LUAJIT_VERSION "LuaJIT 2.0.0-beta10"
#define LUAJIT_VERSION_NUM 20000 /* Version 2.0.0 = 02.00.00. */
#define LUAJIT_VERSION_SYM luaJIT_version_2_0_0_beta10
#define LUAJIT_COPYRIGHT "Copyright (C) 2005-2012 Mike Pall"
#define LUAJIT_URL "http://luajit.org/"
/* Modes for luaJIT_setmode. */
#define LUAJIT_MODE_MASK 0x00ff
enum {
LUAJIT_MODE_ENGINE, /* Set mode for whole JIT engine. */
LUAJIT_MODE_DEBUG, /* Set debug mode (idx = level). */
LUAJIT_MODE_FUNC, /* Change mode for a function. */
LUAJIT_MODE_ALLFUNC, /* Recurse into subroutine protos. */
LUAJIT_MODE_ALLSUBFUNC, /* Change only the subroutines. */
LUAJIT_MODE_TRACE, /* Flush a compiled trace. */
LUAJIT_MODE_WRAPCFUNC = 0x10, /* Set wrapper mode for C function calls. */
LUAJIT_MODE_MAX
};
/* Flags or'ed in to the mode. */
#define LUAJIT_MODE_OFF 0x0000 /* Turn feature off. */
#define LUAJIT_MODE_ON 0x0100 /* Turn feature on. */
#define LUAJIT_MODE_FLUSH 0x0200 /* Flush JIT-compiled code. */
/* LuaJIT public C API. */
/* Control the JIT engine. */
LUA_API int luaJIT_setmode(lua_State *L, int idx, int mode);
/* Enforce (dynamic) linker error for version mismatches. Call from main. */
LUA_API void LUAJIT_VERSION_SYM(void);
#endif
Credits to: Myself
#2
Error:
PHP:
1>..\scriptmanager.cpp(147): error C2039: 'string' : is not a member of 'std::basic_string<_Elem,_Traits,_Ax>'
1>..\luascript.cpp(769): error C2039: 'string' : is not a member of 'std::basic_string<_Elem,_Traits,_Ax>'
Upgrade your boost library to 1_51_0
I used the installer from Download Boost Library Here - BoostPro
Credits to: Loney
#3
Error:
PHP:
1>baseevents.obj : error LNK2001: unresolved external symbol xmlParseFile
1>baseevents.obj : error LNK2001: unresolved external symbol xmlDocGetRootElement
1>baseevents.obj : error LNK2001: unresolved external symbol xmlStrcmp
1>baseevents.obj : error LNK2001: unresolved external symbol xmlFreeDoc
N/A
Credits to: N/A
#3
Error:
PHP:
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
Credits: Myself
That's it for now.
Hope this helps someone.
Last edited: