Re: LuaBind doesnt Compile!

Ryan Pavlik <[email protected]> Mon, 26 Nov 2012 15:36:40 -0600
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <CABMFTE-eh_B3UrEJQQNP2uAap3HozQvnejuS00JC=u2+Weht8w@mail.gmail.com>
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 <[email protected]>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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/luabind-user
>



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

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