Re:Re: i am stuck since a week here: need help:scoping error when trying to make boost work with luabind
thanks brian and aleksey....well i installed the
latest beta of visual studio 2005 instead of my mvc
6.0. It did get rid of the block scoping issues and
many other compiling issues i was facing. I had to
replace the apply_if with eval_if everywhere.
could understand the exact technicalities of that, but
read it from some post on the forum and just followed
it.....
now, i got different issues though....everything
compiles perfect but i get like a million linking
issues..........
the details are as follows:
HelloWorld_GameApp.obj :error LNK2019: unresolved
external symbol _memcpy_s referenced in function
"public: static char * __cdecl
std::char_traits<char>::_Copy_s(char *,unsigned
int,char const *,unsigned int)"
(?_Copy_s@?$char_traits@D@std@@SAPADPADIPBDI@Z)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol _memmove_s referenced in function
"public: static char * __cdecl
std::char_traits<char>::_Move_s(char *,unsigned
int,char const *,unsigned int)"
(?_Move_s@?$char_traits@D@std@@SAPADPADIPBDI@Z)
HelloWorld_GameApp.obj : error LNK2001: unresolved
external symbol "const type_info::`vftable'"
(??_7type_info@@6B@)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol _free referenced in function "public:
virtual __thiscall std::exception::~exception(void)"
(??1exception@std@@UAE@XZ)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol "void __cdecl operator delete(void *)"
(??3@YAXPAX@Z) referenced in function "public: virtual
void * __thiscall std::exception::`scalar deleting
destructor'(unsigned int)"
(??_Gexception@std@@UAEPAXI@Z)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol "public: __thiscall
luabind::module_::module_(struct lua_State *,char
const *)"
(??0module_@luabind@@QAE@PAUlua_State@@PBD@Z)
referenced in function "class luabind::module_
__stdcall luabind::module(struct lua_State *,char
const *)"
(?module@luabind@@YG?AVmodule_@1@PAUlua_State@@PBD@Z)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol _lua_settop@8 referenced in function
"class luabind::detail::object_rep * __stdcall
luabind::detail::is_class_object(struct lua_State
*,int)"
(?is_class_object@detail@luabind@@YGPAVobject_rep@12@PAUlua_State@@H@Z)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol _lua_toboolean@8 referenced in
function "class luabind::detail::object_rep *
__stdcall luabind::detail::is_class_object(struct
lua_State *,int)"
(?is_class_object@detail@luabind@@YGPAVobject_rep@12@PAUlua_State@@H@Z)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol _lua_gettable@8 referenced in function
"class luabind::detail::object_rep * __stdcall
luabind::detail::is_class_object(struct lua_State
*,int)"
(?is_class_object@detail@luabind@@YGPAVobject_rep@12@PAUlua_State@@H@Z)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol _lua_pushstring@8 referenced in
function "class luabind::detail::object_rep *
__stdcall luabind::detail::is_class_object(struct
lua_State *,int)"
(?is_class_object@detail@luabind@@YGPAVobject_rep@12@PAUlua_State@@H@Z)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol _lua_getmetatable@8 referenced in
function "class luabind::detail::object_rep *
__stdcall luabind::detail::is_class_object(struct
lua_State *,int)"
(?is_class_object@detail@luabind@@YGPAVobject_rep@12@PAUlua_State@@H@Z)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol _lua_touserdata@8 referenced in
function "class luabind::detail::object_rep *
__stdcall luabind::detail::is_class_object(struct
lua_State *,int)"
(?is_class_object@detail@luabind@@YGPAVobject_rep@12@PAUlua_State@@H@Z)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol _lua_tonumber@8 referenced in function
"public: int __thiscall
luabind::detail::primitive_converter<struct
luabind::detail::lua_to_cpp>::apply(struct lua_State
*,struct luabind::detail::by_value<int>,int)"
(?apply@?$primitive_converter@Ulua_to_cpp@detail@luabind@@@detail@luabind@@QAEHPAUlua_State@@U?$by_value@H@23@H@Z)
HelloWorld_GameApp.obj : error LNK2001: unresolved
external symbol __fltused
..... so on and on
:mpl::bool_<1>,struct luabind::constructor
Studio\VC98\"
This shows me you are using VC6. While you "can" do
this, you are asking
for more pain than anyone should be forced to have.
(it is not very
compliant and has lots of template quirks. AND you get
pages (and pages
and pages and pages) of template warnings on valid
code (making
debugging compile time issues much more difficult)
My *strong* suggestion to you is you install at least
Visual Studio .net
2003 which comes with the vc++ 7.1 compiler.
If you cannot purchase this product, the command line
compiler is
available for free download from:
http://msdn.microsoft.com/visualc/vctoolkit2003/
Hope this helps
(been there, done that, got the tee-shirt :) )
--- Rohit O chokhani
Hi, i am a rookie as far as boost is concerned and i am trying to make boost work but just cant...on the point of giving up on it...so please help asap....
i am trying to use a scripting language called lua with my c++ source code. FOr that I felt the need to use luabind library which is completely dependent on boost.(project specific reasons for selecting luabind)
As a result i need to have boost on my system. For the past 3-4 days ever since i have been trying to make boost works i have been getting all sorts of compilation errors. mainly they are as follows:
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\memory(16) : error C2059: syntax error : 'string' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\memory(17) : error C2091: function returns function C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\memory(17) : error C2809: 'operator new' has no formal parameters C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\memory(20) : error C2954: template definitions cannot nest
C:\BOOST2\BOOST\boost/mpl/aux_/integral_wrapper.hpp(88)
: fatal error C1506: unrecoverable block scoping error Error executing cl.exe.
i did find some solutions of the various forums of boost recommending to build the latest version from cvs in order to get rid of the scoping issue. however, that hasnt solved my case.
could anyone kindly suggest some fixes, i would really appreciate it, thanks and regards, rohit
__________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail
__________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com
participants (1)
-
Rohit O chokhani