C++ Libraries For Beginners

Поделиться
HTML-код
  • Опубликовано: 27 сен 2024
  • In this video I will try my best to explain how c++ libraries work and how to use them.
    vcpkg manager: docs.microsoft...

Комментарии • 78

  • @logandihel
    @logandihel 5 месяцев назад +11

    Wish this got recommended 72 hours ago! I spent 4 hours trying to configure my CMake file in order to use a 3rd party library. Ended up doing the same thing as you!

  • @stonedchat
    @stonedchat 3 года назад +32

    How tf did I not find this video 2 months ago when deciding which one to learn cpp or java... going back to cpp thanks to this single video! You won't belive how much I needed this video lol

  • @SuperGamingAli
    @SuperGamingAli Год назад +75

    Using C libraries is a painful experience that I would never wish on anyone

    • @matticolo
      @matticolo 10 месяцев назад +5

      Too late 🥲

    • @savagemode2150
      @savagemode2150 9 месяцев назад +14

      Cpp has been widely used for years and people still havent managed to create an straightforward package manager like cargo or npm, that sucks, if I didnt need to use winAPI and some cpp libraries I would NEVER touch this language, the ergonomics are just so bad

    • @husenpatel9381
      @husenpatel9381 2 месяца назад

      ​@@savagemode2150vcpkg works decently

    • @MartinDlabaja
      @MartinDlabaja 2 месяца назад

      vcpkg and its same as using pip

  • @tanishsabne
    @tanishsabne 2 месяца назад +2

    never before had I been stuck on a programming hurdle for 3 days straight. I can finally continue my C++ journey after watching your video. There is no good tutorial on how to statically include C++ libraries using cmake other than yours.

  • @oberon2159
    @oberon2159 4 месяца назад

    Thank you for making this so accessible for a dyslexic programmer! Keep the videos coming they are awesome!

  • @nocturnalsea1640
    @nocturnalsea1640 2 года назад +8

    Thanks boss, you saved me from going crazy.

  • @waiitwhaat
    @waiitwhaat 3 года назад +48

    This was a great video, and honestly, everything I needed. Now I know exactly why my C++ code has been acting funny. My code editor doesn't know the path to the header files! Also thanks for the explanation of the folder contents (SFML in your case). Cleared up a great deal for me.

  • @superboy9431
    @superboy9431 3 года назад +15

    This was an amazing video, Thank you very much! Also that frame at 0:21 perfectly depicts my experience so far haha.

  • @achmadfachranrafly7626
    @achmadfachranrafly7626 2 года назад +2

    Thank you for creating this video. This is extremely useful for me. Keep up the good work!

  • @canisiobarth
    @canisiobarth 2 года назад

    Thanks for the video. The vivado screenshot gave me chills 😂

  • @theowillis6870
    @theowillis6870 10 месяцев назад +1

    couldn't you go through CMake though?

  • @KiWiLUTSCHER
    @KiWiLUTSCHER 10 месяцев назад

    Very understandable. Thank you. Im new in the cpp business

  • @harshitjoshi3082
    @harshitjoshi3082 Год назад

    Thanks for making this video 🧡
    You have helped me and others immensely

  • @alexmattyou
    @alexmattyou 3 месяца назад

    In python, I can just use pip install...
    it can download all it's dependencies
    now, I got stuck in c++
    That I need to build it
    what I'm trying to install is PCL

  • @florianvanbondoc3539
    @florianvanbondoc3539 Год назад +1

    Amazing video bro!

  • @memesalldayjack3267
    @memesalldayjack3267 6 месяцев назад

    very informative, i thought you'd have everything right away

  • @Kristoff458
    @Kristoff458 27 дней назад

    Thanks a lot for this.

  • @nikitawew6087
    @nikitawew6087 5 месяцев назад +1

    thx helped soooo much

  • @juridicalbike344
    @juridicalbike344 Год назад

    do some libraries have incompatible functions?

  • @gandepranaya8618
    @gandepranaya8618 Год назад

    written a program
    But while compiling it shows that (error) studio. h:No such file or directory compliation terminated
    Is displaying
    Any solution
    What to do I am unable to understand

  • @Sawaedo
    @Sawaedo Год назад

    Thanks for the video, it was clearly explained!

  • @mohammedzeebaree883
    @mohammedzeebaree883 2 года назад

    you can write a abstract of (creating library)?

  • @Nuclear_Man_D
    @Nuclear_Man_D 3 года назад +4

    VHDL??? I FEEL YOUR PAIN BRO. SO LONGGGGGGGG

  • @Indemeros
    @Indemeros Год назад

    Thank you for the video!

  • @openroomxyz
    @openroomxyz 2 года назад +1

    Thanks!

  • @Ikxi
    @Ikxi Год назад

    So I should have just used vcpkg from the start huh
    Someone recommended me to use WSL for C but I could never get SFML to work in it -.-
    Now I'm with CLion and got it nearly working haha
    SOOOOO much frustration around this that just made me wanna give up

  • @code-to-learn
    @code-to-learn Год назад

    Thanks for the video

  • @wjrasmussen666
    @wjrasmussen666 Год назад

    This is a fantastic video. Subbing.

  • @bishallamichhane8711
    @bishallamichhane8711 5 месяцев назад

    Helpful

  • @HassanOmariprofile
    @HassanOmariprofile Год назад

    amazing, thanks alot

  • @igorthelight
    @igorthelight 3 года назад +2

    Two very useful videos:
    * Using static libraries: ruclips.net/video/or1dAmUO8k0/видео.html
    * Using dynamic libraries: ruclips.net/video/pLy69V2F_8M/видео.html

  • @jeremyt7817
    @jeremyt7817 Год назад

    THank you!

  • @SquaresToOvals
    @SquaresToOvals 2 года назад

    Oh my goodness thank you

  • @3bdo3id
    @3bdo3id Год назад

    Perfecto

  • @immanueljzv6832
    @immanueljzv6832 2 года назад

    I Love you🤧

  • @aryansabetnejad3886
    @aryansabetnejad3886 3 года назад

    Noice(the meme)
    Thanks bro

  • @basicallybrand
    @basicallybrand 2 года назад

    doesn't work on mac

  • @Holsp
    @Holsp 4 месяца назад

    It took me two minutes to register the subtites were in Dutch

  • @Nikola16789
    @Nikola16789 Год назад

    No, you are completely wrong. ISS software is probably being written in js, because, why fucking not! awesome video btw, thanks

  • @aquilafasciata5781
    @aquilafasciata5781 3 месяца назад

    Important to note; EVERYTHING is possible without libraries. A better word would be it isn’t FEASIBLE when things that are probably better than yours are already out there.

  • @axule4373
    @axule4373 2 года назад

    666th sub :)

  • @digorroblox
    @digorroblox 4 месяца назад +1

    this would be good video if you werent louder in one ear than the other

  • @johnspain2037
    @johnspain2037 2 года назад +2

    This is a good tutorial and very helpful. But please try to speak slower and/or more articulated. Sometimes its hard to follow you.

  • @alinasrollahzadeh7610
    @alinasrollahzadeh7610 Год назад

    You sound like we got no hopes coding c++

  • @hetias
    @hetias Год назад +4

    this is so helpful, i quite knew much of the explained but it clarified a lot more. anyway i'm surprised no mention of the linker, it makes most of the magic (and when we talk about libraries most of the errors!)

  • @madhes23
    @madhes23 14 дней назад

    The content quality is so good! I can't believe your channel has only ~1.5k subs. Your channel will blow up soon. All the best ❤

  • @RayfuzuLearning
    @RayfuzuLearning Год назад +1

    6:03 feel free **

  • @style1363
    @style1363 3 года назад +3

    Whats the best program to use for C++ Coding , Do you recommend any Libraries? And the video was great thanks

    • @MichaelForestTechnologies
      @MichaelForestTechnologies  3 года назад +3

      There isn't really a "best" program, a lot of it depends on what you prefer. :) - If you are new I would recommend using an IDE like "Visual Studio 2019" or "CLION", since it handles a lot of the confusing elements. I have used Visual Studio for a few years, and it works great. I am currently using the Text Editor "Visual Studio Code", and some extensions for programming c++ with cmake, mostly because I find it easier to get an overview that way (it is more tricky to setup though). - When it comes to libraries it really depends a lot on what you want to do. And you will more than likely need multiple libraries when working with more complex programs. One I often use is SFML, it is a multi media library that makes it relatively easy to do certain things, like graphics, audio and networking. It is handy to know how to use at least, and it has a very forgiving license, and pretty good documentation. (it is also the library I used as an example in the video) - Very glad you liked the video, thank you. :)

    • @brunoaugustorodriguesalves4080
      @brunoaugustorodriguesalves4080 2 года назад

      @@MichaelForestTechnologies I'M HAVING PROBLEMS TO INSTALL DEAL II LIBRARY, DO YOU THING I CAN INSTALL THIS LIBRARY JUST WITH CMAKE IN WINDOWS ?

    • @mytech6779
      @mytech6779 10 месяцев назад

      Linux(all of it) is the best for coding, any of the major distributions will work fine, the differences are small [Suse-leap, Debian, Mint, Fedora, Arch, etc]. Linux has most of the tools all packaged and ready to go. Windows just makes it mysterious and complicated so everyone on Windows uses an IDE.
      On Linux I use a nice text editor like kwrite, and for C++ I manually compile in a terminal window ( example: clang++ main.cpp -o myExecutable [-o means output name, and you can use g++ in place of clang++])
      Another example: Python is default included with all of the major distributions so all you need is to type `python3` in a terminal and you will get interactive python. Or use any text editor save the file and run it with `python3 myPythonFile `
      (Or for an executable file, change file permissions to executable, make the first line of the script `#!/usr/bin/env python3` and run it with `//myPythonFile` )

  • @greatorial1672
    @greatorial1672 5 месяцев назад

    Bro,... I think you got something in your eye

  • @beegdigit9811
    @beegdigit9811 2 месяца назад

    Very good video. I've learned this stuff a while back but this is a very good refresher.

  • @rede_neural
    @rede_neural 2 года назад

    I'm trying to use vlc API and in the lib folder there are only .c files and .h files, what do I do with them?

  • @AndreiSokolov-k7j
    @AndreiSokolov-k7j 7 месяцев назад

    i didnt know that master oogwgay such good at programming! master, thank you

  • @samarthtandale9121
    @samarthtandale9121 Год назад

    Great video, very helpful!

  • @hengliang4344
    @hengliang4344 2 года назад

    Yeah Thanks dude!!! You help me a lot!!

  • @icemotion1925
    @icemotion1925 3 года назад

    Very helpful, thanks man

  • @cosyschool
    @cosyschool 2 года назад

    this was such a good video!

  • @bara7979
    @bara7979 2 года назад

    Thank you

  • @guilherme5094
    @guilherme5094 Год назад

    👍

  • @ajayjadhav900
    @ajayjadhav900 2 года назад

    How to include sub-directories in Visual Studio?
    I have to include many header files, which are in different sub-directories. Is there a way in Visual Studio (I am using 2013 edition) to set one include path that Visual Studio will search also the sub-directories for header files?
    My Project is in C/C++.
    Add the "base folder" to the project (project properties -> Configuration Properties -> C/C++ -> Additional Include Directories, "additional include directories")
    I have tried the above option but it is not possible for me to add each and every directory followed by a semicolon.
    I have total 60 + different C C++ sub-directories

  • @overrevvv
    @overrevvv Год назад

    Really awesome and well explained video, Thank you
    Can you make a separate video or tutorial for SDL2 for VS code ?