jxrd Posted June 6, 2009 Share Posted June 6, 2009 Hi all, I'm trying to work with the curl library to make an HTTP request in C++; however, I keep getting the error "undefined reference to `__imp__curl_easy_init'" This is my code thus far: #include <string> #include <iostream> #include <fstream> #include <windows.h> #include <curl/curl.h> using namespace std; int main() { //some other stuff that I'm doing...not really important; works fine. CURL* curl = curl_easy_init(); //this line giving the error } I don't know if anyone else here uses the curl library...some help would be awesome. Google yields no answers that I can find; either that or I'm just unworthy. I've also tried following the curl documentation here but fail to understand...kind of embarrassing So yeah, thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/161211-curl-in-c/ Share on other sites More sharing options...
jxrd Posted June 6, 2009 Author Share Posted June 6, 2009 I think it's something to do with my curl files. I just copied the includes to my includes dir for codeblocks, but I think that's where the error is. Does anyone know how to install/compile/copy the right files or whatever? This is the most irritating thing in the world...I've been searching for hours... Quote Link to comment https://forums.phpfreaks.com/topic/161211-curl-in-c/#findComment-850731 Share on other sites More sharing options...
jxrd Posted June 8, 2009 Author Share Posted June 8, 2009 Surely someone must know how to use the cURL library in C++....? Quote Link to comment https://forums.phpfreaks.com/topic/161211-curl-in-c/#findComment-851697 Share on other sites More sharing options...
jxrd Posted June 10, 2009 Author Share Posted June 10, 2009 Bump...one more time... Quote Link to comment https://forums.phpfreaks.com/topic/161211-curl-in-c/#findComment-853039 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.