XCode - #include in ml.hpp : No such file or directory

前端 未结 1 405
甜味超标
甜味超标 2020-12-21 10:57

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 :

<         


        
相关标签:
1条回答
  • 2020-12-21 11:26

    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.

    0 讨论(0)
提交回复
热议问题