Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unknown type name 'using' in XCode

I have a project (MyLib) inside my main project (MainApp). When I build the MainApp, XCode gives me an error in one of the .h file of MyLib:

using namespace cv;

The error message is:

Unknown type name 'using' 

If I build MyLib alone, I do not have any error.

like image 704
poiuytrez Avatar asked Jun 28 '13 14:06

poiuytrez


1 Answers

I expect that header file is included from a .m (Objective-C) file?

Change the extension to .mm (Objective-C++) and it should work fine.

like image 183
trojanfoe Avatar answered Sep 24 '22 07:09

trojanfoe