Linking error

Added by Burgundy over 7 years ago

Hello! I've got a problem building the client from source code.I think I set up everything right in vstudio 2008.The problem is with the 'client' project.It compiles fine, but at the linking phase I get the error listed here:
init.obj : error LNK2019: unresolved external symbol "class stlpx_std::basic_string<char,class stlpx_std::char_traits<char>,class stlpx_std::allocator<char> > __cdecl getAppBundlePath(void)" (?getAppBundlePath@YA?AV?$basic_string@DV?$char_traits@D@stlpx_std@V?$allocator@D@2@stlpx_std@XZ) referenced in function "class stlpx_std::basic_string<char,class stlpx_std::char_traits<char>,class stlpx_std::allocator<char> > __cdecl replaceApplicationDirToken(class stlpx_std::basic_string<char,class stlpx_std::char_traits<char>,class stlpx_std::allocator<char> > const &)" (?replaceApplicationDirToken@YA?AV?$basic_string@DV?$char_traits@D@stlpx_std@V?$allocator@D@2@stlpx_std@ABV12@@Z)

Any help's appreciated.


Replies (5)

RE: Linking error - Added by Lukan over 7 years ago

This appears to be due to a badly linked external_stlports folder. Suggested to use the Build For Windows Cmake guide found at:

http://dev.ryzom.com/wiki/ryzom/BuildForWindowsCmake

Then to use :

http://dev.ryzom.com/wiki/7/EverythingWindows

For final setup of the server on windows.

Giving support in the irc channel #ryzom on irc.freenode.net.

Luk

RE: Linking error - Added by kervala over 7 years ago

You're using obsolete projects/solutions, you should follow this wiki page now to create new and up-to-date VC++ projects :

http://dev.ryzom.com/wiki/ryzom/BuildForWindowsCmake

VC++ projects are hard to maintain because we have to change projects properties for all configurations and update CMake projects as well.

CMake is able to create projects for Linux (GCC), Mac OS (GCC and XCode) and Windows (all VC++ versions), while VC++ are only working with VC++ 2008.

RE: Linking error - Added by Burgundy over 7 years ago

Hello, guys, and thanks for the answers.I will go ahead with CMake and also will read a bit about it as it sounds like a useful tool.
Anyway, the error kinda stirred my interest as my C/C++ and compiler knowledge lacks.So the linker throws that error because of failing to link with the stlport.Does that failure to link with stlport generate a different signature for getAppBundlePath and that causes the error?
I know this is far from a ryzom source code issue, but I'd appreciate the answer.Thanks!

RE: Linking error - Added by kervala over 7 years ago

No, you only got this error because old VC++ projects don't include the required file :)

RE: Linking error - Added by Burgundy over 7 years ago

Thank you, guys, building right now the newly generated solution by CMake.

(1-5/5)