-----Original Message----- From: curl-library [mailto:[email protected]] On Behalf Of Mathieu Fregeau Sent: Mittwoch, 13. August 2014 01:20 To: [email protected] Subject: Instruction not clear
Hi, I want to use libcurl in my c++ projects. I use code block under windows 7 (64 bit). Code block uses Mingw tool chain which is in my c:\mingw Normally I include my regular library as such: #include <stdio.h> Most example state to use libcurl as such: #include <curl/curl.h> I downloaded the zip file "curl-7.34.0-devel-mingw32.zip" and unzipped it. It contains couple files and folders (namely a bin, include, lib, samples). My question is "what now?" It's unzipped, and I want to use it in my project. Obviously I'm not an expert in intuition or mind reading, and there are no clear explanations (or obviously I didn't find them). The read me specify and email for questions and there I am. In more details, what should I do with the unzipped files/folders? How do I link them to say that #include <curl/...> will find it? I did add a global variable in code block as such: name is "curl" and base is "c:\curl-7.34.0-devel-mingw32" which is where the zip was unzipped. I'm asking something simple, so you understand I am not a guru. Thank you. Mathieu ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html Hi, I'd suggest to do some reading about the tool you're using. Namely C/C++ and how to build executables in general. It would be then obvious that you either have to copy headers (from include) to compiler's search path and libraries to linker's search path or (better) provide paths to those during compilation (and how to do it exactly depends on your environment). Most libraries won't tell you that because what you're asking is a part of basic knowledge when you use C/C++. -- Gruesse, Jakub ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
