I have a project (MyLib) inside my main project (MainApp). When I create MainApp, Xcode gives me an error in one of the .h MyLib files:
using namespace cv;
Error message:
Unknown type name 'using'
If I create only MyLib, I have no errors.
I expect the header file to be included from a .m file (Objective-C)?
.m
Change the extension to .mm (Objective-C ++) and it should work fine.
.mm
Source: https://habr.com/ru/post/1488700/More articles:https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1488695/httpd-fails-to-load-xdebug-the-procedure-entry-point-could-not-be-located&usg=ALkJrhiuYhWf3YT7MaR17O1j8o1ksXAJ-AIs this required or (||) statement? - javascriptPython: Split a list based on the first character of a word - pythonWhy don't all () stop at the first False element? - pythonC # asp.net Support for multiple versions of dll - c #Git is a workflow problem. Delete merged branch from another branch - githttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1488702/converting-d3js-css-styles-to-inline-styles&usg=ALkJrhh-J8wrFsRYVPBYqNnfxtCRIZLikAhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1488703/dependency-injection-ef-repository-dispose-method-called-to-soon&usg=ALkJrhgqP8P6QaHSAP73BimmD2LqPgfg4gextjs processes HTTP responses globally - javascriptLINQ to SQL uses a query after DataContext Dispose - c #All Articles