I have an Xcode 4.2 project that I worked with all day just fine, and suddenly, after the Xcod...">

Vocabulary or preprocessor issue with "#import <map>

I have an Xcode 4.2 project that I worked with all day just fine, and suddenly, after the Xcode crash, my project started compiling with an error:

"file myClass.m: error: Lexical or Preprocessor Issue: 'map' file not found" 

where myClass.m uses:

 #import <map> #import <vector> 

I tried a clean build, but xcode still complains. How can I recognize the std: vector and std: map libraries again?

+6
source share
1 answer

because your source is not C ++ or objC ++. change myClass.m to myClass.mm .

+7
source

Source: https://habr.com/ru/post/901165/


All Articles