So I'd like to know the simplest way to get Lua++ to work.
Here is what I've been doing
- if I understand [url=http://www.cegui.org.uk/wiki/index.php/Getting_Started_with_Lua_and_CEGUI) the wiki[/url] well, easy-to-build and easy-to-use version of lua and tolua++ are included in the 0.4.1 release.. the thing is that I've looked around for the sources but I could only find the lua_and_tolua++.lib.
- I even tried to compile toLua++ 1.0 by using lua_and_tolua++.lib as an input libary instead of lua_5.1.lib but I got a lot of unresolved symbol
Code: Select all
MSVCRT.lib(MSVCR80.dll) : error LNK2005: __errno already defined in LIBCMT.lib(dosmap.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _fclose already defined in LIBCMT.lib(fclose.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _isprint already defined in LIBCMT.lib(_ctype.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _isspace already defined in LIBCMT.lib(_ctype.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: ___iob_func already defined in LIBCMT.lib(_file.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _fprintf already defined in LIBCMT.lib(fprintf.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _exit already defined in LIBCMT.lib(crt0dat.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _strchr already defined in LIBCMT.lib(strchr.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _strncat already defined in LIBCMT.lib(strncat.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _strcspn already defined in LIBCMT.lib(strcspn.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _realloc already defined in LIBCMT.lib(realloc.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _free already defined in LIBCMT.lib(free.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _isalnum already defined in LIBCMT.lib(_ctype.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _isdigit already defined in LIBCMT.lib(_ctype.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _iscntrl already defined in LIBCMT.lib(_ctype.obj)
MSVCRT.lib(MSVCR80.dll) : error LNK2005: _isalpha already defined in LIBCMT.lib(_ctype.obj)
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
tolua.obj : error LNK2019: unresolved external symbol _lua_objlen referenced in function _add_extra
tolua.obj : error LNK2019: unresolved external symbol _lua_getfield referenced in function _add_extra
tolua_map.obj : error LNK2001: unresolved external symbol _lua_getfield
tolua_push.obj : error LNK2001: unresolved external symbol _lua_getfield
tolua.obj : error LNK2019: unresolved external symbol _lua_createtable referenced in function _main
tolua_event.obj : error LNK2001: unresolved external symbol _lua_createtable
tolua_map.obj : error LNK2001: unresolved external symbol _lua_createtable
tolua.obj : error LNK2019: unresolved external symbol _lua_setfield referenced in function _main
tolua.obj : error LNK2019: unresolved external symbol _luaL_openlibs referenced in function _main
tolua.obj : error LNK2019: unresolved external symbol _luaL_newstate referenced in function _main
tolua_is.obj : error LNK2019: unresolved external symbol _lua_tolstring referenced in function _tolua_typename
tolua_to.obj : error LNK2001: unresolved external symbol _lua_tolstring
tolua_map.obj : error LNK2019: unresolved external symbol _lua_gc referenced in function _tolua_bnd_releaseownership- I got the Lua sources and tried to get a lib out of it by compiling it with VC Express but it failed
I would be really grateful if someon could help me, Lua+CEGUI is really the most fitted solution for my project and I would hate not to use it.
Thanks
