Build + Use static CURL with Visual Studio 2019 or 2017

preview_player
Показать описание
There are far too few tutorials for this. It took me more than some time to figure out the first time I did it, now that I reinstalled and had to do it again, I thought I'd record the process for those building CURL and using it for the first time.
Bookmark this video as you will likely return at some stage in the future.

Timestamps
00:00 - Introduction
00:50 - Setting up Visual Studio 2019 environment
02:22 - Download CURL
02:58 - Building x32 Debug & Release
06:08 - Building x64 Debug & Release
07:06 - Cleaning up for use
08:33 - Preparing to add CURL
09:30 - Explaining 2 methods
09:50 - Method 1 [For example]
12:58 - CURL Demo
13:46 - Method 2 [Better]
19:55 - CURL Demo 2

Why the external link? YouTube does not allow greater than and smaller than brackets in video descriptions.
-----------------------------
-----------------------------

Everything in this video is my personal opinion and experience, and should not be considered professional advice. Always do your own research and make sure what you're doing is safe.
Рекомендации по теме
Комментарии
Автор

This is one of the greatest YouTube tutorials of all time. Subbed.

dingFAching
Автор

This has been one of the best tutorials I have ever seen. Well spoken, clear and straight to the point. Any problem I was having trouble with was covered, you even went so far to show two methods of getting it all setup within a project. Thank you for this video, you are a legend.

cheetah_
Автор

Thank you very much for the video!
ALSO, i wanted to tell people that:
IF YOUR PROJECT IN VC BEGINS WITH "include "pch.h""
THEN, you'll have to "define CURL_STATICLIB" AFTER the include of "pch.h", that is what means the warning that says that CURL_STATICLIB is not linked because some other pre-compiled inclusion.
This was being a headache to me, a simple change in the order fixed!

sophiacristina
Автор

The fact that you need a tutorial to compile this bloody thing... Thanks for the video. Struggled for ages to do it using cmake, only to get endless errors when using "-DCURL_STATIC_CRT=ON", like "error C1189: #error: MSVC 6.0 requires "February 2003 Platform SDK"", "error C1083: Cannot open include
file: 'sys/time.h': No such file or directory" and non-sense like that. This video finally saved me. I wonder why they can't post proper instructions like these on the project page. Not everyone has the luxury of using Linux everywhere.

valivalivali
Автор

ThanksEven I, who don’t know English well, understand everything. I follow your advice and everything works out for me. Before this, I suffered all day, and no one could explain to me so clearly how to compile someone else’s project. Thanks, really

nickolayivanov
Автор

Love c++, 20 minute guide to add the most common library of the world

nyatuyegemot
Автор

THANK YOU! I was suffering for the whole day trying to compile curlib code with makefiles which just DON"T WORK on my laptop and after all of that, you, the saviour, came and ended my day with a success. Thank you a lot!

wonderwaffle
Автор

Thank you so much! You're my lifesaver! I couldn't find any useful information about how to integrate cURL lib into C++ project but your video

essica
Автор

Sometimes its so easy but it you read to much you get messed up. This is just perfect and spot on! Thanks for this man!

digital_human
Автор

Oh my god finally somebody who explains the setup of the libraries. As a noob I thank you so much.

Maniclout
Автор

God bless you my dude. I was struggling with this stuff for ages

kubakakauko
Автор

followed all your steps, but if building for x64 (either release or debug), I get unresolved external symbol errors in curl_easy_init :l

MultiRoberth
Автор

Thanks so much for this detailed setup with cURL and VS. It worked great. I had tried previously to compile and use cURL using Eclipse C++, but I kept running into roadblocks. I couldn't find detailed documentation to get past the issues. But I have also used VS for many years, so I switched to your method. Now I can get back to the actual project I want to do.

georgesealy
Автор

I have ADD. My desktop is a complete mess. Thank you for the organization tips.

alfredoniz
Автор

you saved me bro i passed two days trying to install the curl library

MirakXfire
Автор

This is well job done. Best and clear way to understand and make run CURL in VS.

SSArchitecture
Автор

you are a great! You have clearly resolved the installation that seemed impossible to me !!! Thanks so much.

bbianchi
Автор

Thank you so much!! Ive spent hours trying to get this to work, I wasnt even close

ZackOfAllTrads
Автор

Will this work with VS 2022? The files I am getting are not named the same.. after I do the build for x64.. example or am I on the right track here?

MusicAMG
Автор

Thank you. Great Video.

I wish you could zoom in more when you make these videos. That would be extremely helpful. Thank you.

mooseminddayan