curl.h no such file or directory
To those who use centos and have stumbled upon this post :
$ yum install curl-devel
and when compiling your program example.cpp
, link to the curl library:
$ g++ example.cpp -lcurl -o example
"-o example
" creates the executable example
instead of the default a.out
.
The next line runs example
:
$ ./example
Instead of downloading curl, down libcurl.
curl is just the application, libcurl is what you need for your C++ program