|
Boost Users : |
From: Rohit O chokhani (rchokhani_at_[hidden])
Date: 2004-11-03 13:09:54
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_at_D@std@@SAPADPADIPBDI_at_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_at_D@std@@SAPADPADIPBDI_at_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_at_std@@UAE_at_XZ)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol "void __cdecl operator delete(void *)"
(??3_at_YAXPAX@Z) referenced in function "public: virtual
void * __thiscall std::exception::`scalar deleting
destructor'(unsigned int)"
(??_Gexception_at_std@@UAEPAXI_at_Z)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol "public: __thiscall
luabind::module_::module_(struct lua_State *,char
const *)"
(??0module__at_luabind@@QAE_at_PAUlua_State@@PBD_at_Z)
referenced in function "class luabind::module_
__stdcall luabind::module(struct lua_State *,char
const *)"
(?module_at_luabind@@YG?AVmodule__at_1@PAUlua_State@@PBD_at_Z)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol _lua_settop_at_8 referenced in function
"class luabind::detail::object_rep * __stdcall
luabind::detail::is_class_object(struct lua_State
*,int)"
(?is_class_object_at_detail@luabind@@YGPAVobject_rep_at_12@PAUlua_State@@H_at_Z)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol _lua_toboolean_at_8 referenced in
function "class luabind::detail::object_rep *
__stdcall luabind::detail::is_class_object(struct
lua_State *,int)"
(?is_class_object_at_detail@luabind@@YGPAVobject_rep_at_12@PAUlua_State@@H_at_Z)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol _lua_gettable_at_8 referenced in function
"class luabind::detail::object_rep * __stdcall
luabind::detail::is_class_object(struct lua_State
*,int)"
(?is_class_object_at_detail@luabind@@YGPAVobject_rep_at_12@PAUlua_State@@H_at_Z)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol _lua_pushstring_at_8 referenced in
function "class luabind::detail::object_rep *
__stdcall luabind::detail::is_class_object(struct
lua_State *,int)"
(?is_class_object_at_detail@luabind@@YGPAVobject_rep_at_12@PAUlua_State@@H_at_Z)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol _lua_getmetatable_at_8 referenced in
function "class luabind::detail::object_rep *
__stdcall luabind::detail::is_class_object(struct
lua_State *,int)"
(?is_class_object_at_detail@luabind@@YGPAVobject_rep_at_12@PAUlua_State@@H_at_Z)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol _lua_touserdata_at_8 referenced in
function "class luabind::detail::object_rep *
__stdcall luabind::detail::is_class_object(struct
lua_State *,int)"
(?is_class_object_at_detail@luabind@@YGPAVobject_rep_at_12@PAUlua_State@@H_at_Z)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol _lua_tonumber_at_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_at_Ulua_to_cpp_at_detail@luabind@@@detail_at_luabind@@QAEHPAUlua_State@@U?$by_value_at_H@23_at_H@Z)
HelloWorld_GameApp.obj : error LNK2001: unresolved
external symbol __fltused
..... so on and on
:mpl::bool_<1>,struct luabind::constructor<int,struct
luabind::detail::null_type,struct
luabind::detail::null_type,struct
luabind::detail::null_type,struct
luabind::detail::null_type,struct
luabind::detail::null_type,struct
luabind::detail::null_type,struct
luabind::detail::null_type,struct
luabind::detail::null_type,struct
luabind::detail::null_type> *,struct
luabind::detail::null_type const &)"
(??$def_constructor_at_U?$constructor_at_HUnull_type_at_detail@luabind@@U123_at_U123@U123_at_U123@U123_at_U123@U123_at_U123@@luabind@@Unull_type_at_detail@2@@?$class__at_VMultiObject@@Uunspecified_at_detail@luabind@@U234_at_U234@@luabind@@AAEAAU01_at_U?$bool_@$00_at_mpl@boost@@PAU?$constructor_at_HUnull_type_at_detail@luabind@@U123_at_U123@U123_at_U123@U123_at_U123@U123_at_U123@@1_at_ABUnull_type_at_detail@1@@Z)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol "public: void __thiscall
luabind::detail::class_base::add_method(char const
*,struct luabind::detail::overload_rep const &)"
(?add_method_at_class_base_at_detail@luabind@@QAEXPBDABUoverload_rep_at_23@@Z)
referenced in function "private: struct
luabind::class_<class MultiObject,struct
luabind::detail::unspecified,struct
luabind::detail::unspecified,struct
luabind::detail::unspecified> & __thiscall
luabind::class_<class MultiObject,struct
luabind::detail::unspecified,struct
luabind::detail::unspecified,struct
luabind::detail::unspecified>::virtual_def<void
(__thiscall MultiObject::*)(int),struct
luabind::detail::null_type>(char const *,void
(__thiscall MultiObject::*const &)(int),struct
luabind::detail::null_type const &,struct
luabind::detail::null_type,struct
boost::mpl::bool_<1>)"
(??$virtual_def_at_P8MultiObject@@AEXH_at_ZUnull_type_at_detail@luabind@@@?$class__at_VMultiObject@@Uunspecified_at_detail@luabind@@U234_at_U234@@luabind@@AAEAAU01_at_PBDABQ8MultiObject@@AEXH_at_ZABUnull_type_at_detail@1_at_U341@U?$bool_@$00_at_mpl@boost@@@Z)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol "public: void __thiscall
luabind::module_::operator[](struct luabind::scope)"
(??Amodule__at_luabind@@QAEXUscope_at_1@@Z) referenced in
function "public: virtual enum ERROR_CODE __thiscall
CTestRoom::OnStartRoom(void)"
(?OnStartRoom_at_CTestRoom@@UAE?AW4ERROR_CODE@@XZ)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol "public: __thiscall
luabind::scope::scope(struct luabind::scope const &)"
(??0scope_at_luabind@@QAE_at_ABU01@@Z) referenced in
function "public: virtual enum ERROR_CODE __thiscall
CTestRoom::OnStartRoom(void)"
(?OnStartRoom_at_CTestRoom@@UAE?AW4ERROR_CODE@@XZ)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol "void __stdcall luabind::open(struct
lua_State *)" (?open_at_luabind@@YGXPAUlua_State@@@Z)
referenced in function "public: virtual enum
ERROR_CODE __thiscall CTestRoom::OnStartRoom(void)"
(?OnStartRoom_at_CTestRoom@@UAE?AW4ERROR_CODE@@XZ)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol "public: void __thiscall
CxDrawText::SetFont(unsigned int)"
(?SetFont_at_CxDrawText@@QAEXI_at_Z) referenced in function
"public: virtual enum ERROR_CODE __thiscall
CTestRoom::OnStartRoom(void)"
(?OnStartRoom_at_CTestRoom@@UAE?AW4ERROR_CODE@@XZ)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol _atexit referenced in function "void
__cdecl g_cTest::`dynamic initializer'(void)"
(??__Eg_cTest@@YAXXZ)
LINK : error LNK2001: unresolved external symbol
_WinMainCRTStartup
LINK : error LNK2001: unresolved external symbol
__load_config_used
n0\HelloWorld_GameAppn0.exe : fatal error LNK1120: 198
unresolved externals
Build log was saved at
"file://c:\MISC\msvc2005\HelloWorld_GameApp\n0\BuildLog.htm"
HelloWorld_GameApp - 199 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date,
0 skipped ==========
do these link post sound familiar with something you
have seen before or they could be my code specific
which i will have to dig into.....
well, i am trying to make luabind and boost work with
someone elses code.....so i do not completely
understand
it myself....
just trying to register a few classes from there thru
a hello world app and trying to work my way from
luabind
from there.....
any assitance over here will be appreciated....
also,
just to verify,
for linking what all .libs need to be listed in the
project options...
i have lua.lib, lua_debug.lib...
i have the paths for luabind and boost set up as per
the documentations...is there anything else
that needs to be done to get the environment
correct...just wondering if i am missing out on
any .libs to be listed in the project settings????
thanks and regards,
rohit
----------------------
you wrote:
Brian Braatz]
" C:\Program Files\Microsoft Visual
> > 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 <rchokhani_at_[hidden]> wrote:
> 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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net