XCode – #include <map> in ml.hpp : No such file or directory

I’m trying to compile a C++ code (OpenCV) and I’m going to the end. I just have a few “No such file or directory” compile error into XCode 4 on those lines :

#include <map>
#include <string>
#include <iostream>

What may I include to make it find the “files” ?

  • How to add userInfo to a UIAlertView?
  • Change camera capture device while recording a video
  • How to detect when user clears your app's notification
  • Keypath for first element in embedded NSArray
  • Redirect to Settings Screen for Twitter Login
  • Topic Won't Save in Firebase
  • I don’t see.

    I use another project based on OpenCV with Objective-C inside for example that pass the compile process with success, files are the same, and I checked all the Build settings lines one after the other, and it’s all the same, except the search pathes that are updated to go to my own project folders. Folder architecture is the same…

    I’ve read this link but it doesn’t seems to be the solution as I should not have to add code anywhere of change files, since I don’t use any of the code and the example project works fine like this. I’ve just included into one of my .m files, exactly like the example project.

    Solutions Collect From Internet About “XCode – #include <map> in ml.hpp : No such file or directory”

    I’ve just included into one of my .m
    files, exactly like the example
    project.

    If you want to use C++ classes, you must use Objective-C++. Your source files (not your header files, mind – the source files that #include them) must have a .mm extension.