thanks again brian.Like u said, i also thought about
project settings and made sure I had set the various
options and linker specifications correctly...well,
i solved a lot of issues and i am down to 12 errors
from initially 122. Which is quite a relief, but these
last 12 are still an issue taking away a considerable
time of mine.
I am working on them right now but do let me know if
you have any clue. They are mainly some issues with
luabind and boost. I have just made #include
references to luabind and boost. Havent included any
.libs for them, so it would be great if you let me
know if there are any specific .libs for the same that
need to be added to the project settings.
APart from that I have made sure that the various
include and lib directory paths have been set
correctly.
I am attaching the error message below,
thanks again in advance,
regards,
rohit
Linking...
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_ __cdecl
luabind::module(struct lua_State *,char const *)"
(?module@luabind@@YA?AVmodule_@1@PAUlua_State@@PBD@Z)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol "public: __thiscall
luabind::scope::~scope(void)"
(??1scope@luabind@@QAE@XZ) referenced in function
"public: __thiscall
luabind::detail::class_base::~class_base(void)"
(??1class_base@detail@luabind@@QAE@XZ)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol "int __cdecl
luabind::detail::implicit_cast(class
luabind::detail::class_rep const *,class type_info
const * const &,int &)"
(?implicit_cast@detail@luabind@@YAHPBVclass_rep@12@ABQBVtype_info@@AAH@Z)
referenced in function "public: static int __cdecl
luabind::detail::pointer_converter<struct
luabind::detail::lua_to_cpp>::match<class
MultiObject>(struct lua_State *,struct
luabind::detail::by_pointer<class MultiObject>,int)"
(??$match@VMultiObject@@@?$pointer_converter@Ulua_to_cpp@detail@luabind@@@detail@luabind@@SAHPAUlua_State@@U?$by_pointer@VMultiObject@@@12@H@Z)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol "public: void * __thiscall
luabind::detail::class_rep::convert_to(class type_info
const *,class luabind::detail::object_rep const *,void
*)const "
(?convert_to@class_rep@detail@luabind@@QBEPAXPBVtype_info@@PBVobject_rep@23@PAX@Z)
referenced in function "public: class MultiObject *
__thiscall luabind::detail::pointer_converter<struct
luabind::detail::lua_to_cpp>::apply<class
MultiObject>(struct lua_State *,struct
luabind::detail::by_pointer<class MultiObject>,int)"
(??$apply@VMultiObject@@@?$pointer_converter@Ulua_to_cpp@detail@luabind@@@detail@luabind@@QAEPAVMultiObject@@PAUlua_State@@U?$by_pointer@VMultiObject@@@12@H@Z)
HelloWorld_GameApp.obj : error LNK2019: unresolved
external symbol "public: void __thiscall
luabind::detail::class_base::init(class type_info
const *,class type_info const *,class type_info const
*,void * (__cdecl*)(void *),void const *
(__cdecl*)(void *),void (__cdecl*)(void *,void *),void
(__cdecl*)(void *,void *),void (__cdecl*)(void *,void
*),void (__cdecl*)(void *),void (__cdecl*)(void
*),void (__cdecl*)(void *),void (__cdecl*)(void
*),void (__cdecl*)(void *),int,int)"
(?init@class_base@detail@luabind@@QAEXPBVtype_info@@00P6APAXPAX@ZP6APBX1@ZP6AX11@Z44P6AX1@Z5555HH@Z)
referenced in function "private: void __thiscall
luabind::class_
-----Original Message----- From: boost-users-bounces <at> lists.boost.org [mailto:boost-users- bounces <at> lists.boost.org] On Behalf Of Rohit O chokhani Sent: Wednesday, November 03, 2004 10:10 AM To: boost list Subject: [Boost-users] Re:Re: i am stuck since a week here: needhelp: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 <at> ?$char_traits <at> D <at> std <at> <at> 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 <at> ?$char_traits <at> D <at> std <at> <at> SAPADPADIPBDI <at> Z) HelloWorld_GameApp.obj : error LNK2001: unresolved external symbol "const type_info::`vftable'" (??_7type_info <at> <at> 6B <at> ) HelloWorld_GameApp.obj : error LNK2019: unresolved external symbol _free referenced in function "public: virtual __thiscall std::exception::~exception(void)" (??1exception <at> std <at> <at> UAE <at> XZ) HelloWorld_GameApp.obj : error LNK2019: unresolved external symbol "void __cdecl operator delete(void *)" (??3 <at> YAXPAX <at> Z) referenced in function "public: virtual void * __thiscall std::exception::`scalar deleting destructor'(unsigned int)" (??_Gexception <at> std <at> <at> UAEPAXI <at> Z) HelloWorld_GameApp.obj : error LNK2019: unresolved external symbol "public: __thiscall luabind::module_::module_(struct lua_State *,char const *)" (??0module_ <at> luabind <at> <at> QAE <at> PAUlua_State <at> <at> PBD <at> Z) referenced in function "class luabind::module_ __stdcall luabind::module(struct lua_State *,char const *)" (?module <at> luabind <at> <at> YG?AVmodule_ <at> 1 <at> PAUlua_State <at> <at> 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 <at> luabind <at> <at> YGPAVobject_rep <at> 12 <at> PAUlua_State <at> <at> 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 <at> luabind <at> <at> YGPAVobject_rep <at> 12 <at> PAUlua_State <at> <at> 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 <at> luabind <at> <at> YGPAVobject_rep <at> 12 <at> PAUlua_State <at> <at> 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 <at> luabind <at> <at> YGPAVobject_rep <at> 12 <at> PAUlua_State <at> <at> 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 <at> luabind <at> <at> YGPAVobject_rep <at> 12 <at> PAUlua_State <at> <at> 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 <at> luabind <at> <at> YGPAVobject_rep <at> 12 <at> PAUlua_State <at> <at> 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 <at> ?$primitive_converter <at> Ulua_to_cpp <at> detail <at> luabind <at> <at> <at> detail <at> luabin d <at>
<at> QAEHPAUlua_State <at> <at> U?$by_value <at> H <at> 23 <at> H <at> Z) HelloWorld_GameApp.obj : error LNK2001: unresolved external symbol __fltused
..... so on and on
:mpl::bool_<1>,struct luabind::constructor
*,struct luabind::detail::null_type const &)"
(??$def_constructor <at> U?$constructor <at> HUnull_type <at> detail <at> luabind <at> <at> U123 <at> U123 <at> U
123 <at> U123 <at> U123 <at> U123 <at> U123 <at> U123 <at> <at> luabind <at> <at> Unull_type <at> detail <at> 2 <at> <at> ?$class_ <at> VMu lt
iObject <at> <at> Uunspecified <at> detail <at> luabind <at> <at> U234 <at> U234 <at> <at> luabind <at> <at> AAEAAU01 <at> U?$bo ol
_ <at> $00 <at> mpl <at> boost <at> <at> PAU?$constructor <at> HUnull_type <at> detail <at> luabind <at> <at> U123 <at> U123 <at> U1
23 <at> U123 <at> U123 <at> U123 <at> U123 <at> U123 <at> <at> 1 <at> ABUnull_type <at> detail <at> 1 <at> <at> 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 <at> luabind <at> <at> QAEXPBDABUoverload_rep <at> 23 <at> <at> Z) referenced in function "private: struct luabind::class_
& __thiscall luabind::class_ ::virtual_def (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 <at> <at> AEXH <at> ZUnull_type <at> detail <at> luabind <at> <at> <at> ?$class _ <at>
VMultiObject <at> <at> Uunspecified <at> detail <at> luabind <at> <at> U234 <at> U234 <at> <at> luabind <at> <at> AAEAAU01 <at> PB
DABQ8MultiObject <at> <at> AEXH <at> ZABUnull_type <at> detail <at> 1 <at> U341 <at> U?$bool_ <at> $00 <at> mpl <at> boos t <at>
<at> <at> Z) HelloWorld_GameApp.obj : error LNK2019: unresolved external symbol "public: void __thiscall luabind::module_::operator[](struct luabind::scope)" (??Amodule_ <at> luabind <at> <at> QAEXUscope <at> 1 <at> <at> Z) referenced in function "public: virtual enum ERROR_CODE __thiscall CTestRoom::OnStartRoom(void)" (?OnStartRoom <at> CTestRoom <at> <at> UAE?AW4ERROR_CODE <at> <at> XZ) HelloWorld_GameApp.obj : error LNK2019: unresolved external symbol "public: __thiscall luabind::scope::scope(struct luabind::scope const &)" (??0scope <at> luabind <at> <at> QAE <at> ABU01 <at> <at> Z) referenced in function "public: virtual enum ERROR_CODE __thiscall CTestRoom::OnStartRoom(void)" (?OnStartRoom <at> CTestRoom <at> <at> UAE?AW4ERROR_CODE <at> <at> XZ) HelloWorld_GameApp.obj : error LNK2019: unresolved external symbol "void __stdcall luabind::open(struct lua_State *)" (?open <at> luabind <at> <at> YGXPAUlua_State <at> <at> <at> Z) referenced in function "public: virtual enum ERROR_CODE __thiscall CTestRoom::OnStartRoom(void)" (?OnStartRoom <at> CTestRoom <at> <at> UAE?AW4ERROR_CODE <at> <at> XZ) HelloWorld_GameApp.obj : error LNK2019: unresolved external symbol "public: void __thiscall CxDrawText::SetFont(unsigned int)" (?SetFont <at> CxDrawText <at> <at> QAEXI <at> Z) referenced in function "public: virtual enum ERROR_CODE __thiscall CTestRoom::OnStartRoom(void)" (?OnStartRoom <at> CTestRoom <at> <at> UAE?AW4ERROR_CODE <at> <at> XZ) HelloWorld_GameApp.obj : error LNK2019: unresolved external symbol _atexit referenced in function "void __cdecl g_cTest::`dynamic initializer'(void)" (??__Eg_cTest <at> <at> 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
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
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
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
wrote: Hi, i am a rookie as far as boost is concerned and i am trying to make boost work but just cant...on
"file://c:\MISC\msvc2005\HelloWorld_GameApp\n0\BuildLog.htm" thru line 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 mailing list Boost-users <at> lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users z __________________________________ Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com