![]() |
|
C++ LibCurl Problem. Linking. -- Sorry about wrong section. - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Coders Lounge (https://hackforums.net/forumdisplay.php?fid=5) +---- Thread: C++ LibCurl Problem. Linking. -- Sorry about wrong section. (/showthread.php?tid=5732495) |
C++ LibCurl Problem. Linking. -- Sorry about wrong section. - M0therB0ard - Oct 7, 2017 I included libcurl in my .cpp file, but I get a error that I can't fix. It's a linking error I think. My code : Code #include<libcurl/curl/curl.h>Error : Code unresolved external symbol _imp_curl_easy_init referenced in function main.Can someone tell me why... I'm 99% sure it' because I'm not using a .lib file, however the .zip did not include any .lib or even a dll. I had to download the .dll from somewhere else. It would help greatly if someone could provide me the .lib file for LibCurl... * - sLiCkToR - Oct 7, 2017 You are right about the issue. You can fix some versions by linking all the libraries properly. If you've got the static version, you should try to define CURL_STATICLIB in your project. Note that I haven't used cURL in the last 1 year so it's not for sure going to work. * - M0therB0ard - Oct 7, 2017 (Oct 7, 2017 12:23 PM)sLiCkToR Wrote: You are right about the issue. You can fix some versions by linking all the libraries properly. If you've got the static version, you should try to define CURL_STATICLIB in your project. Note that I haven't used cURL in the last 1 year so it's not for sure going to work. Thank you so much, after a few PreCompiled errors, I managed to realize that I couldn't include LibCurl until after I defined CURL_STATICLIB. I managed to get it working :D. |