Skip to main content
gamedev.net
🔒 Locked

Compiled LuaBind

Started by Dwiel 4 replies 3.7k views
Original Post
Dwiel
Dwiel
Hello, I am wondering if anyone here would be kind enough to help me out and get me a compiled version of LuaBind? I''ve been looking for the past couple of hours, for either how to compile it in windows (VC++... also tried cygwin), or where I can get the binaries so I can link. Also, is there a way to lower the compile time? It takes forever! I tried just not linking to see how far it would get, and I was able to get up to the linking stage, which of course wont work because I dont have the libs. I was just compiling an example and it took forever... I''d really hope there is a faster way to do this because, I am hoping to be exporting a lot more functionallity than that example was :|... thanks Dwiel
Sneftel
Sneftel
Tazzel, if you can''t compile LuaBind, how do you expect to compile things with LuaBind? Focus on solving the real problem--that you can''t get it to compile--rather than trying to work around the problem. Posting the compilation errors might be a good start.


"Sneftel is correct, if rather vulgar." --Flarelocke
Dwiel
Dwiel
I Tried just creating a static library project in VC++. Then I added all of the files in the src directory of luabind. I compiled and everything went OK. I tried compiling an example and everything was OK until It tried to link. I have made sure that it is linking to luabind.lib, and most of the linker errors are errors from that lib itself... I can give you the beggening of the linker errors, maybe you can help me figure out how I am building this wrong...


Linking...
LuaBind.obj : error LNK2001: unresolved external symbol _lua_close
LuaBind.obj : error LNK2001: unresolved external symbol _lua_dofile
LuaBind.obj : error LNK2001: unresolved external symbol _luaopen_math
LuaBind.obj : error LNK2001: unresolved external symbol _luaopen_string
LuaBind.obj : error LNK2001: unresolved external symbol _luaopen_io
LuaBind.obj : error LNK2001: unresolved external symbol _luaopen_base
LuaBind.obj : error LNK2001: unresolved external symbol _lua_open
LuaBind.obj : error LNK2001: unresolved external symbol _lua_settable
luabind.lib(open.obj) : error LNK2001: unresolved external symbol _lua_settable
luabind.lib(class_rep.obj) : error LNK2001: unresolved external symbol _lua_settable
luabind.lib(create_class.obj) : error LNK2001: unresolved external symbol _lua_settable
LuaBind.obj : error LNK2001: unresolved external symbol _lua_pushvalue
luabind.lib(open.obj) : error LNK2001: unresolved external symbol _lua_pushvalue
luabind.lib(class_rep.obj) : error LNK2001: unresolved external symbol _lua_pushvalue
luabind.lib(create_class.obj) : error LNK2001: unresolved external symbol _lua_pushvalue
luabind.lib(create_class.obj) : error LNK2001: unresolved external symbol _lua_pushstring
luabind.lib(stack_content_by_name.obj) : error LNK2001: unresolved external symbol _lua_pushstring
LuaBind.obj : error LNK2001: unresolved external symbol _lua_pushstring
luabind.lib(open.obj) : error LNK2001: unresolved external symbol _lua_pushstring
luabind.lib(class_rep.obj) : error LNK2001: unresolved external symbol _lua_pushstring
luabind.lib(function.obj) : error LNK2001: unresolved external symbol _lua_pushstring
LuaBind.obj : error LNK2001: unresolved external symbol _lua_newtable
luabind.lib(open.obj) : error LNK2001: unresolved external symbol _lua_newtable
luabind.lib(class_rep.obj) : error LNK2001: unresolved external symbol _lua_newtable
luabind.lib(stack_content_by_name.obj) : error LNK2001: unresolved external symbol _lua_settop
LuaBind.obj : error LNK2001: unresolved external symbol _lua_settop
luabind.lib(open.obj) : error LNK2001: unresolved external symbol _lua_settop
luabind.lib(class_rep.obj) : error LNK2001: unresolved external symbol _lua_settop
....


This goes on for quite a while. I got no linking errors while creating the library to start with, but I guess thats just because no linking is done for a library right?

Thanks

Dwiel
Dwiel
Dwiel
Actually, it turns out, I was just forgetting to link to lua itself.

Still, is there a way to help speed things up? Besides buying a quad processor comp to handle all of these templates?

Thanks

Dwiel
Sneftel
Sneftel
Nah. LuaBind is notoriously slow to compile. Just separate your code out so that the luabind bits are as isolated as possible, and grin and bear it.


"Sneftel is correct, if rather vulgar." --Flarelocke
Dwiel
Dwiel
Ok. Thanks for the help

Dwiel

BTW, right now, I only have a 950mhz athlon, so that is part of the problem...

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.