I am integrating openCV in my project.
When i integrate in my sample application it works fine(In Targets Here i placed the compile source code as in “Objective c++”)
But when i integrate the same application in to my “Main application”(In Targets Here i placed the compile source code as in “According to file type”) it says error as “Lexical or preprocessor issue map file not found”
If i put the target settings in “Objective c++” then it raises an error in ASIAuthenticationDialog.m
I followed some answers posted here.
This answer worked for me in my sample app(here i did not have any parsing i placed the compile source code as ‘objective c++’) But in my Main Application where i do parsing it raises error(i placed the compile source code as ‘According to file type’)
Please Guide me.
Look at XCode’s Log navigator : each build produce a log you can navigate into (showing only errors/warning), try and find exactly WHICH source file your compiler was trying to compile. (and also at which step it occurs : precompiled header / compiling / linking ?)
As you seem already aware, the problem might not be from OpenCV, but from your classes that depend on it – when the pre-compiler tries to solve import statements – I although thought that renaming your ‘m’ files in ‘mm’ solved this problem…
But if some library you’re using need plain C (ASIAuthenticationDialog.m) – I guess that’s the problem you’re facing could rephrased : ‘How do i mix C and C++ sources ?’
Maybe this SO post might help
Good luck !