Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 942
user975017 Avatar asked Oct 02 '11 01:10

user975017


2 Answers

  • Right click on your project
  • select Properties
  • Expand Configuration Properties
  • Click on the VC++ Directories
  • Add $(ProjectDir) into the "Reference Directories" item
like image 67
Jason Newland Avatar answered Oct 12 '22 23:10

Jason Newland


Under Visual Studio 2010/2012/2013

  • Right click on your project
  • select Properties
  • Expand Configuration Properties
  • Click on the VC++ Directories
  • Add the path to your file, as well as $(ProjectDir), into the "Reference Directories" item
like image 20
Noah Avatar answered Oct 13 '22 00:10

Noah