OpenXcom Forum

Contributions => Programming => Topic started by: pmprog on August 24, 2010, 09:03:08 pm

Title: Compilation problems
Post by: pmprog 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

Title: Re: Compilation problems
Post by: SupSuper 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.
Title: Re: Compilation problems
Post by: pmprog on August 24, 2010, 10:47:41 pm
Thanking you  ;D