I am not able to use libcurl C ++

0

Well, I can not use libcurl! Can someone help me? Teach me how to compile this correctly!

I'm following all the steps that come in a doc along with the project itself. >

asked by anonymous 08.07.2018 / 17:00

1 answer

0

So folks, I've managed to solve it!

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

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

No Code :: Blocks I downloaded the generic lib already compiled directly from the official libcurl download page Link > > link It already 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 compiler folder of Code :: Blocks simply add the include "curl / curl.h" and add the following flag > > -lcurl, to your project! Finally you must compile the lib in release mode to be able to access the dll, in order to run the compiled file! dll goes to the same folder as the compiled file!

    
09.07.2018 / 00:47