Author Topic: Compilation problems  (Read 4816 times)

Offline pmprog

  • Commander
  • *****
  • Posts: 647
  • Contributor
    • View Profile
    • Polymath Programming
Compilation problems
« on: August 24, 2010, 09:03:08 pm »
It's been a while since I've updated my project and looked at OpenXcom (work has been grinding me down), but now I can't compile  :(

Errors occur in craftweaponsstate.cpp, lines 106, 109, 110, 147, 157

error C2039: 'at' : is not a member of 'std::map<_Kty,_Ty>'
error C2227: left of '->getQuantity' must point to class/struct/union/generic type


Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2160
    • View Profile
Re: Compilation problems
« Reply #1 on: August 24, 2010, 09:49:45 pm »
Fixed. Funny how VS2008 doesn't support the at() method for std::map, maybe it's something only introduced in C++0x.

Offline pmprog

  • Commander
  • *****
  • Posts: 647
  • Contributor
    • View Profile
    • Polymath Programming
Re: Compilation problems
« Reply #2 on: August 24, 2010, 10:47:41 pm »
Thanking you  ;D