curl/curl.h on Windows

Tech163 picture Tech163 · Dec 25, 2010 · Viewed 28.3k times · Source

I have the following in my c++ script:

#include "curl/curl.h"

When I try to compile it, I get the following error:

\Users\username\Desktop\Temp\talkbot\main.cpp C:\Users\username\Desktop\Temp\talkbot\C curl.h: No such file or directory.

So I searched around and tried to download cURL for windows. I ended up on http://www.paehl.com/open_source/?CURL_7.21.3 and choose Download without SSL. I downloaded it and I simply got curl.exe.

What am I supposed to do with that file to get curl.h? Thanks in advance.

Answer

Jim Brissom picture Jim Brissom · Dec 25, 2010

Instead of downloading cURL, downloab libcurl. For Windows, you can use these links:

http://curl.haxx.se/download/libcurl-7.19.3-win32-ssl-msvc.zip

http://www.gknw.net/mirror/curl/win32/curl-7.21.3-devel-mingw32.zip