Author Topic: Build fails with wstring::back() not found in linux (solved)  (Read 6322 times)

Offline alienjon

  • Sergeant
  • **
  • Posts: 12
    • View Profile
    • Cybernetic Pit-Stop
Build fails with wstring::back() not found in linux (solved)
« 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?
« Last Edit: November 10, 2012, 05:04:25 am by alienjon »

Offline pmprog

  • Commander
  • *****
  • Posts: 647
  • Contributor
    • View Profile
    • Polymath Programming
Re: Build fails with wstring::back() not found in linux
« Reply #1 on: November 08, 2012, 09:33:09 am »
That was fixed about a week ago. Are you sure you got the most recent commit?

Offline kkmic

  • Commander
  • *****
  • Posts: 582
  • Undefined
    • View Profile
Re: Build fails with wstring::back() not found in linux
« Reply #2 on: November 08, 2012, 10:31:48 am »
Yeah, you could try with a fresh clone to be sure.

Offline alienjon

  • Sergeant
  • **
  • Posts: 12
    • View Profile
    • Cybernetic Pit-Stop
Re: Build fails with wstring::back() not found in linux
« Reply #3 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.