LuaBind doesnt Compile!
Stefan Seibert <[email protected]> Sat, 24 Nov 2012 15:14:57 +0100
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
Hy Everybody,
anyone a idea about this issue:
I want to put luabind in a project using the ogre engine.
If i only use this external include:
extern "C" {
#include "lua.h"
}
i get a linker error for a missing external symbol (seems to be in the
lualib)
but when i add this external include:
extern "C" {
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
}
i get a lot of compiling errors:
C2086, C2199, C4430 that are saying that default-int is not supported by
c++ and other stuff.
The errors are all in the "lualib.h" file (v 1.43) :
.......
#define LUA_IOLIBNAME "io"
LUAMOD_API int (luaopen_io) (lua_State *L);
........
VS is moaning about the "LUAMOD_API" that has no class or type
specification.
I am using vs2010. Anybody a idea?
Thx a lot,
cheers - Stefan
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov