0

I am running VS2015 community and working with a mixed OpenCV/CUDA code. The project runs as it should but Intellisense squiggles under the include headers. When I right click, it gives this error. enter image description here

Things I have already tried:

  1. Restarting VS (at least a dozen times).
  2. Deleting the .vs folder in the project folder.
  3. Deleting the *.vc.db in the project folder.
  4. Check the Additional Include Directories
  5. Remove the Additional Include Directories > Fail to compile > Add them back > successfully compiles.
  6. Make sure I am on x64 and Debug. I am using OpenCV 3.2 x64.

Other stackoverflow questions I have already referred with no success

  1. why visual studio editor can not find a header file, when compiler can find it
  2. Visual Studio 2008 oddity with C++ and header files
  3. Visual Studio can't 'see' my included header files
  4. How to rebuild VS2010 IDE Intellisense?
  5. Visual Studio 2015: Intellisense errors but solution compiles
  6. 'Additional include directories' in visual studio 2010 doesn't work
  7. Visual Studio 2010 intellisense not recognising additional include directory
  8. Visual Studio 2012 - Intellisense sometimes disappearing / broken
  9. Visual Studio C# IntelliSense not automatically displaying
talonmies
  • 70,661
  • 34
  • 192
  • 269
Souradeep Nanda
  • 3,116
  • 2
  • 30
  • 44

1 Answers1

1

The problem had to do something with the CUDA build settings in the project. I fixed the problem by moving $(OPENCV_DIR)\include from Additional Include Directories to simply Include Directories. Remove from here Add here

Souradeep Nanda
  • 3,116
  • 2
  • 30
  • 44