Download Curl Devel Mingw
Find out how to use curl by reading the curl.1 man page or the MANUAL document. Find out how to install Curl by reading the INSTALL document. Libcurl is the library curl is using to do its job. It is readily available to be used by your software. Read the libcurl.3 man page to learn how!
I am in Redhat 5 and the following packages are not found
Weird! What am I missing here?
Elliot B.closed as off-topic by Ward♦, Jenny D, mdpc, MadHatter, Katherine VillyardJun 26 '15 at 19:25
This question appears to be off-topic. The users who voted to close gave this specific reason:
- 'Questions seeking installation, configuration or diagnostic help must include the desired end state, the specific problem or error, sufficient information about the configuration and environment to reproduce it, and attempted solutions. Questions without a clear problem statement are not useful to other readers and are unlikely to get good answers.' – Ward, Jenny D, mdpc, MadHatter, Katherine Villyard
1 Answer
Unless you're looking for some specific version a 3rd party package has been compiled against, it's called curl-devel in RHEL 5.
yum install curl-devel
This is straight out of the distribution's repository, no 3rd party repository necessary.
yoonixyoonixNot the answer you're looking for? Browse other questions tagged yumrhel5curl or ask your own question.
There isn't exactly an 'adding libraries to codeblock for dummies' out there, and I read some guides/explanations but nothing really worked. After a couple hours finally the solution came from here: http://stackoverflow.com/questions/8876536/using-libcurl-c
Download the 'Win32 Generic' libcurl package. (7.24.0) In Code::Blocks, right click your project and open the build options. Go to 'Linker Settings' and add 'curldll' into the 'Link Libraries' listbox. (image) Go to 'Search Directories' and under 'Compiler' link it to the path of your 'curl-7.24.0-devel-mingw32include' folder. Go to the 'Linker' tab under 'Search Directories', and add the path of your 'curl-7.24.0-devel-mingw32lib' directory. Move all DLLs from your 'curl-7.24.0-devel-mingw32bin' folder into your projects 'bin' folder. Build and enjoy
It doesn't have much explanation but I'd like to know what's going on. Firstly, curl-7.24.0-devel-mingw32include is being adding to the list of standard headers (allowing me to use <curl/curl.h> rather than 'curl/curl.h'), and curl-7.24.0-devel-mingw32lib to the standard library, or something, right?
I need to add the DLL files to my bin folder because this is a dynamic library, but what is the purpose of adding curldll to the Link Libraries? Can someone explain that to me?
Is there a way to make this a static library?
Also, is adding libraries really this awkward?