defining header file directories in VC++

my compiler can't find these files:

1
2
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp" 


I've gone to Project/Properties/Include Directories and added:

C:\Users\DSNoS\Documents\opencv\sources\include

which didn't work, and tried:

C:\Users\DSNoS\Documents\opencv\sources\include\

and it didn't like that either. Any pointers? Greatly appreciated.
So can you find imgproc.hpp using windows explorer, starting at say C:\Users\DSNoS\Documents ?
Yes, the files are there. That's how I found the complete directory string to where they ae.
Last edited on
So, the full path of the file is C:/Users/DSNoS/Documents/opencv/sources/include/opencv2/imgproc/imgproc.hpp ?

Is that correct?
Try using < > instead of " " is my first suggestion, but I have a feeling that might not solve it.
visual studio project settings, additional include folders, add the folder may also resolve it.
Looks like there's a couple of directories I needed to put in, but they were close enough that I didn't see the difference. ANd now I don't have 48 errors starting with "can't find file", but 1535 errors of various types.

Thanks for the pointer on "additional include folders". That helped. So, I didn't completely waste everyone's time.
Topic archived. No new replies allowed.