I'm writing a very simple program in MS Visual Studio Community 2015 that uses cURL. cURL installs header files here:
C:\Program Files (x86)\CURL\include\curl
A little embarrassing, but I cannot figure out why MS Visual Studio cannot find include file curl.h which is in that directory.
I've included that path in:
C/C++ | General | Additional Include files
My stadfx.h has the line:
#include <curl.h>
but I get this error when I compile:
fatal error C1083: Cannot open include file: 'curl.h': No such file or directory
The project compiles OK when I change the line in stadfx.h to:
#include "C:\Program Files (x86)\CURL\include\curl\curl.h"
I could just go with that but I have a similar problem with the library paths. I want to link with libcurl_imp.lib, which is here:
C:\Program Files (x86)\CURL\lib
I've included that path in:
Linker | General | Additional Library Directories
and I added libcurl_imp.lib to:
Linker | Input | Additional Dependencies
but I get unresolved externals for all of the LIBCURL function calls I make.
Suggestions are most welcome!
Thanks
What I have tried:
I've also tried including the path in:
VC++ Directories | Include Directories