OpenXcom Forum

Contributions => Programming => Topic started by: alienjon on November 08, 2012, 06:05:37 am

Title: Build fails with wstring::back() not found in linux (solved)
Post by: alienjon on November 08, 2012, 06:05:37 am
Hi all!  It's been a while since I've been around, but recently updated to the most recent commit.  I'm getting a build error, though, and I'm not sure exactly what's up.  My build fails with the following:

Code: [Select]
/home/alienjon/git/OpenXcom/src/Interface/Text.cpp: In member function ‘void OpenXcom::Text::setText(const wstring&)’:
/home/alienjon/git/OpenXcom/src/Interface/Text.cpp:132:60: error: ‘std::wstring’ has no member named ‘back’
make[2]: *** [src/CMakeFiles/openxcom.dir/Interface/Text.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/openxcom.dir/all] Error 2
make: *** [all] Error 2

Any ideas what could be up?
Title: Re: Build fails with wstring::back() not found in linux
Post by: pmprog on November 08, 2012, 09:33:09 am
That was fixed about a week ago. Are you sure you got the most recent commit?
Title: Re: Build fails with wstring::back() not found in linux
Post by: kkmic on November 08, 2012, 10:31:48 am
Yeah, you could try with a fresh clone to be sure.
Title: Re: Build fails with wstring::back() not found in linux
Post by: alienjon on November 10, 2012, 05:04:15 am
Thanks for the replies.  Turns out that the pull was from a slightly older commit.  An upstream pull and merge fixed the problem.