If you have an error log , it will be very useful, and if you can print screenshots of the inclusions and libraries of your IDE (I think VisualStudio or Eclipse). Such errors usually occur due to
#PATH environment variable includes libraries
I had to deal with these errors many times, and even I thought that everything was correct, it is easy to associate the library with OpenCV with an error.
source share