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开发者_C百科 this?
- Right click on your project
- select Properties
- Expand Configuration Properties
- Click on the VC++ Directories
- Add $(ProjectDir) into the "Reference Directories" item
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
If you've added the header file correctly, then sometimes intellisense can be corrupted and you will need to delete the .ncb file in you project. Once this is done, restart VS and see if this works. The .ncb file is the intellisense database file so if you delete this, VS will rebuild it.
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 $(VCInstallDir)lib;, into the "Reference Directories" item
精彩评论