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.

Edit
Report