[SOLVED]Need help for compiling with vs2008

Added by rom74 over 3 years ago

Hi everybody!
First sorry for my bad english but i'm french.
I tell you because i can't compile ryzom client under vs2008. I have read BuildForWindowsCmake and i take luabind error.
I have add stlport under the top of include in vs2008, nothing compile too.
After a lot of test with differents configuration in cmake, i finally come to you.
That is the error log compiling :

Création de la bibliothèque C:\Users\romain\Desktop\ryzom\code\test\lib\Release\ryzom_client_r.lib et de l'objet C:\Users\romain\Desktop\ryzom\code\test\lib\Release\ryzom_client_r.exp
12>lua_ihm.obj : error LNK2019: symbole externe non résolu "public: __thiscall luabind::scope::scope(class std::auto_ptr<struct luabind::detail::registration>)" (??0scope@luabind@QAE@V?$auto_ptr@Uregistration@detail@luabind@std@Z) référencé dans la fonction "struct luabind::scope __cdecl luabind::def<int (__cdecl*)(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &),struct luabind::detail::null_type>(char const *,int (__cdecl*)(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &),struct luabind::detail::null_type const &)" (??$def@P6AHABV?$basic_string@DU?$char_traits@D@std@V?$allocator@D@2@std@ZUnull_type@detail@luabind@luabind@YA?AUscope@0@PBDP6AHABV?$basic_string@DU?$char_traits@D@std@V?$allocator@D@2@std@@ZABUnull_type@detail@0@Z)
12>lua_ihm.obj : error LNK2019: symbole externe non résolu "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl luabind::detail::get_class_name(struct lua_State *,class luabind::type_id const &)" (?get_class_name@detail@luabind@YA?AV?$basic_string@DU?$char_traits@D@std@V?$allocator@D@2@std@PAUlua_State@ABVtype_id@2@Z) référencé dans la fonction "public: static void __cdecl luabind::detail::type_to_string<float>::get(struct lua_State *)" (?get@?$type_to_string@M@detail@luabind@SAXPAUlua_State@Z)
12>lua_ihm.obj : error LNK2019: symbole externe non résolu "public: struct std::pair<void *,int> __thiscall luabind::detail::cast_graph::cast(void *,unsigned int,unsigned int,unsigned int,void const *)const " (?cast@cast_graph@detail@luabind
@QBE?AU?$pair@PAXH@std@PAXIIIPBX@Z) référencé dans la fonction "public: virtual struct std::pair<void *,int> __thiscall luabind::detail::pointer_holder<class std::auto_ptr<class ucstring>,void const >::get(unsigned int)const " (?get?$pointer_holder@V?$auto_ptr@Vucstring@@std@$$CBX@detail@luabind@UBE?AU?$pair@PAXH@std@I@Z)
12>C:\Users\romain\Desktop\ryzom\code\test\bin\Release\ryzom_client_r.exe : fatal error LNK1120: 3 externes non résolus

Thank's a lot for your answer.


Replies (4)

RE: Need help for compiling with vs2008 - Added by molator over 3 years ago

Place the externals next to the "code" folder.

external_stlport if you check WITH_STLPORT or
external if you don't check that option.

RE: Need help for compiling with vs2008 - Added by rom74 over 3 years ago

Thanks for your reply,
My folder structure is already :
Ryzom
-code
-external_stlport

Cmake doesn't detect my external and my stlport_include_dir. I manualy set it.
I'm using windows Seven.

But that don't work.

Thank's a lot

RE: Need help for compiling with vs2008 - Added by kervala over 3 years ago

Since we switched to CMake you don't need anymore to change global VC++ 2008 include or lib folders. As mentionned Molator, make sure you checked WITH_STLPORT so it will check and use STLport.

Your error occurs because VC++ is trying to link against MS STL not STLport.

[SOLVED]RE: Need help for compiling with vs2008 - Added by rom74 over 3 years ago

Thanks for all your reply.
I finaly resolve the problem. I follow the build guide using command line for extracting the external_stlport. Cmake detect automaticly my external and the build was succesfull.

Thanks all

(1-4/4)