I have an XCode 4.2 project that I've been working with all day just fine and all of the sudden, after an XCode crash, my project started to compile with the error:
"file myClass.m: error: Lexical or Preprocessor Issue: 'map' file not found"
where myClass.m uses:
#import <map>
#import <vector>
I've tried a clean build but xcode is still complaining. How can I get it to recognize std:vector and std:map libraries again?
it's because your source is not c++ or objc++. change myClass.m
to myClass.mm
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With