IntelliSense: cannot open source file "curl.h" in C++

user975017 picture user975017 · Oct 2, 2011 · Viewed 34.7k times · Source

I am unable to compile my C++ project.

IntelliSense: cannot open source file "curl.h" in C++

I tried adding that file to the "Header Files" folder in Solution Explorer: no change. I was unable to add it to the "Source Files" folder.

How can I fix this?

Answer

Jason Newland picture Jason Newland · Jun 30, 2013
  • Right click on your project
  • select Properties
  • Expand Configuration Properties
  • Click on the VC++ Directories
  • Add $(ProjectDir) into the "Reference Directories" item