Skip to content

Use libcurl in Dev-C++(MinGW) #13431

Answered by jay
Sean537 asked this question in Q&A
Discussion options

You must be logged in to vote

How can I use curl in Dev-Cpp(version 5.11, MinGW 4.9.2, ISO C++11)? Does curl support it?

Yes. Please read the documentation for your IDE. You will need to add curl's include path, lib path and add -lcurl to the libs. Also, since you are on Windows, if you want to use a static libcurl instead of the libcurl DLL then you would need to add -DCURL_STATICLIB to the preprocessor definitions.

For example let's take the official curl for Windows 64-bit build curl-8.7.1_7-win64-mingw.zip unzipped to c:\foo. The lib folder would be c:\foo\curl-8.7.1_7-win64-mingw\lib and the include folder would be c:\foo\curl-8.7.1_7-win64-mingw\include. Your application will need the libcurl DLL which is in c…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bagder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants