I’m not able to use libcurl C++

Asked

Viewed 119 times

-1

Guys, I can’t get my libcurl on! Could someone give me a hand? teach me how to compile this correctly!

Because I am following all the steps that come in a doc together with the project itself. >>BUILD.WINDOWS.txt<, which is inside the folder >>winbuild<<.

Follow video of the steps I’m following here to compile! I can compile normally, but when it’s time to use it says that the functions have not been defined.

As if I hadn’t lynched the lib to my project!

Following link >> https://www.youtube.com/watch?v=cG5yA_fiBoY

1 answer

-1

So, guys, I got it sorted!

report my solution!  I was compiling the lib correctly! But I was trying to use it in Code::Blocks! No Code::Blocks have to make some settings to be able to work!

Already in Visual Studio 15 2017, it worked without making any extra configuration! Just connect the lib to the project!

No Code::Blocks I downloaded the lib Generica already compiled straight from the official libcurl download page Link >> https://bintray.com/artifact/download/vszakats/generic/curl-7.60.0-win32-mingw.zip It comes in the right format for you to include inside the compiler folder of Code::Blocks! Ex:"C: Program Files (x86) Codeblocks Mingw " Including in the Code::Blocks compiler folder just add the include "Curl/Curl. h" and add the following >> -lcurl flag to your project! last you must compile the lib in release mode in order to have access to dll, in order to execute the compiled file!  dll goes to the same folder as the compiled file!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.