1
#include <curl/curl.h>

When using an external library you must link with it:

1
$ g++ main.cpp -lcurl