LuaBind doesnt Compile!

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

LuaBind doesnt Compile!

Stefan Seibert
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
_______________________________________________
luabind-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user
Reply | Threaded
Open this post in threaded view
|

Re: LuaBind doesnt Compile!

Ryan Pavlik-4
What version of Luabind are you using? How are you building it? (It looks like you're finding that your application doesn't build, rather than Luabind itself)  What version of Lua are you using? (I believe the "official" upstream release does not yet support 5.2)

Ryan


On Sat, Nov 24, 2012 at 8:14 AM, Stefan Seibert <[hidden email]> wrote:
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
_______________________________________________
luabind-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user



--
Ryan Pavlik
HCI Graduate Student
Virtual Reality Applications Center
Iowa State University

[hidden email]
http://academic.cleardefinition.com

------------------------------------------------------------------------------
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
_______________________________________________
luabind-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user