Using Libraries in C++ (Static Linking)

preview_player
Показать описание


Thank you to the following Patreon supporters:
- Samuel Egger
- Dominic Pace
- Kevin Gregory Agwaze
- Sébastien Bervoets

Gear I use:
-----------------

Рекомендации по теме
Комментарии
Автор

Would love to see a video that explains "Make" files and using things such as CMake

ryleypowell
Автор

Personal Notes:
- There are two parts in a library usually: includes and libraries. İnclude directory has a bunch of header files and lib directory has those pre-built binaries.
- Dynamic library is loaded(linked) into program at runtime, dynamic library can be anywhere and you do the linking whereas static library is put(compiled) into your executable program
- We have to point our compiler to header files (include files) and then we also have to point out our linker to library files.

serkanozturk
Автор

0:32 "its pretty simple!" said no CMake user ever!

ags
Автор

nothing clear than that.
the best c++ channel ever.
I love the idea of explaining with eye contact.

zxnnightstalker
Автор

Cherno, you are the only person that has made this make sense. You're an incredible teacher.

tomaustin
Автор

I know I've probably already said this 100 times but thank you so much for all of your videos, they seriously help me so much. A lot of people who program aren't the best writers lol so it's really hard for me to follow along with most textbooks and written content from MIT, but watching you and hearing your clear explanations and SEEING how things work is so, so helpful, and makes it easier for me to code along with your examples (and pause the video to experiment if I have a "What if I do this?" moment) and to have it stick in my mind better

svenbtb
Автор

Coming from a GNU background I always found Visual Studio projects confusing to setup. This video cleared a lot of my confusion about using external libraries. Thanks!

jhfoleiss
Автор

Wow this is amazing!!! I spent more than 8 hours trying to create libraries using the GLFW source code and Cmake. This was so much simpler, and he actually explained how the linkers work. Kudos to you man !!!

anantj
Автор

I'd be interested to see the "importing source code into another project in the same solution and compiling it to a static library" video.

RandomGuyyy
Автор

great video. It often feels like so many other resources assume that one has this knowledge "a priori" and then you are stuck. You've shown that it is not that difficult, but one needs to learn it.

snuffbox
Автор

Very good video!
For the Linux users -
Static lib (".lib") is ".a" (Archive) in Linux and dynamic lib (".dll") is ".so" (Shared Object).

eyalpery
Автор

1:37 watching on a linux platform, a windows sound echoes
wtf?

matheuspinheirodesousa
Автор

Great stuff as always , and yes linking libs from source code video would be a nice add to this series

Djzaamir
Автор

Nobody at university shows you this stuff. If I weren’t proactive in my studies I’d still be stuck writing cli programs. We’ve covered 3 languages and no one’s touched upon the topic of third party libraries. The closest we’ve gotten to an explanation was “just do ‘pip install’ and the manager will handle it” (python). No mention on basic stuff like having ‘requirements.txt’ or using virtual environments (especially on Linux).
So in conclusion: Thanks for the awesome videos! Really helpful

jimmylander
Автор

1:37
Windows wants to tell you something.

nextlifeonearth
Автор

I've been going through this series one video at a time, and it feels so rewarding to finally be covering libraries!

danieldrew
Автор

A really great thing about your video is that you not only tell us what and why to do, but also conduct those little experiments that deepen our understanding. Well done.

seayellow
Автор

Thank you for going in depth. I watch all your videos to the end.

h.hristov
Автор

Dude ..you are a dude of cpp...love to see your videos..i hated cpp but whenever i feel that way i watch your videos...and my perspective changes..👍

triangleangle
Автор

people who judge you for waving your hands, have never been in a position to see themselves in action. i put up a mirror at work so people couldn't surprise me. i knew i was a bit of a cartoon character before that. now i'm sure.

jeanahollings