C++ Libraries For Beginners

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ต.ค. 2024
  • In this video I will try my best to explain how c++ libraries work and how to use them.
    vcpkg manager: docs.microsoft...

ความคิดเห็น • 79

  • @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!

  • @SuperGamingAli
    @SuperGamingAli ปีที่แล้ว +79

    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

  • @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

    • @sahilbaori9052
      @sahilbaori9052 2 ปีที่แล้ว +2

      Java is awful.

    • @arifyalcn214
      @arifyalcn214 2 ปีที่แล้ว

      python: laughing. . . . .

    • @mister-ace
      @mister-ace ปีที่แล้ว

      @@sahilbaori9052 false

    • @mynameisname6162
      @mynameisname6162 ปีที่แล้ว +1

      @@mister-ace True

    • @raffazaver
      @raffazaver 2 หลายเดือนก่อน

      you just don't understand java

  • @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.

  • @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.

  • @oberon2159
    @oberon2159 4 หลายเดือนก่อน

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

  • @madhes23
    @madhes23 21 วันที่ผ่านมา

    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 ❤

  • @nocturnalsea1640
    @nocturnalsea1640 2 ปีที่แล้ว +8

    Thanks boss, you saved me from going crazy.

  • @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!)

  • @beegdigit9811
    @beegdigit9811 2 หลายเดือนก่อน

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

  • @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!

  • @memesalldayjack3267
    @memesalldayjack3267 6 หลายเดือนก่อน

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

  • @Kristoff458
    @Kristoff458 หลายเดือนก่อน

    Thanks a lot for this.

  • @canisiobarth
    @canisiobarth 2 ปีที่แล้ว

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

  • @nikitawew6087
    @nikitawew6087 6 หลายเดือนก่อน +1

    thx helped soooo much

  • @KiWiLUTSCHER
    @KiWiLUTSCHER 11 หลายเดือนก่อน

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

  • @florianvanbondoc3539
    @florianvanbondoc3539 ปีที่แล้ว +1

    Amazing video bro!

  • @harshitjoshi3082
    @harshitjoshi3082 ปีที่แล้ว

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

  • @AndreiSokolov-k7j
    @AndreiSokolov-k7j 7 หลายเดือนก่อน

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

  • @Sawaedo
    @Sawaedo ปีที่แล้ว

    Thanks for the video, it was clearly explained!

  • @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 11 หลายเดือนก่อน

      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` )

  • @Indemeros
    @Indemeros ปีที่แล้ว

    Thank you for the video!

  • @theowillis6870
    @theowillis6870 10 หลายเดือนก่อน +1

    couldn't you go through CMake though?

  • @Nuclear_Man_D
    @Nuclear_Man_D 3 ปีที่แล้ว +4

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

  • @openroomxyz
    @openroomxyz 2 ปีที่แล้ว +1

    Thanks!

  • @code-to-learn
    @code-to-learn ปีที่แล้ว

    Thanks for the video

  • @samarthtandale9121
    @samarthtandale9121 ปีที่แล้ว

    Great video, very helpful!

  • @alexmattyou
    @alexmattyou 4 หลายเดือนก่อน

    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

  • @hengliang4344
    @hengliang4344 2 ปีที่แล้ว

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

  • @HassanOmariprofile
    @HassanOmariprofile 2 ปีที่แล้ว

    amazing, thanks alot

  • @icemotion1925
    @icemotion1925 3 ปีที่แล้ว

    Very helpful, thanks man

  • @SquaresToOvals
    @SquaresToOvals 2 ปีที่แล้ว

    Oh my goodness thank you

  • @jeremyt7817
    @jeremyt7817 ปีที่แล้ว

    THank you!

  • @wjrasmussen666
    @wjrasmussen666 ปีที่แล้ว

    This is a fantastic video. Subbing.

  • @bishallamichhane8711
    @bishallamichhane8711 5 หลายเดือนก่อน

    Helpful

  • @cosyschool
    @cosyschool 2 ปีที่แล้ว

    this was such a good video!

  • @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

  • @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

  • @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?

  • @juridicalbike344
    @juridicalbike344 ปีที่แล้ว

    do some libraries have incompatible functions?

  • @overrevvv
    @overrevvv ปีที่แล้ว

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

  • @mohammedzeebaree883
    @mohammedzeebaree883 2 ปีที่แล้ว

    you can write a abstract of (creating library)?

  • @bara7979
    @bara7979 2 ปีที่แล้ว

    Thank you

  • @immanueljzv6832
    @immanueljzv6832 2 ปีที่แล้ว

    I Love you🤧

  • @3bdo3id
    @3bdo3id ปีที่แล้ว

    Perfecto

  • @aryansabetnejad3886
    @aryansabetnejad3886 3 ปีที่แล้ว

    Noice(the meme)
    Thanks bro

  • @RayfuzuLearning
    @RayfuzuLearning ปีที่แล้ว +1

    6:03 feel free **

  • @guilherme5094
    @guilherme5094 ปีที่แล้ว

    👍

  • @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.

  • @greatorial1672
    @greatorial1672 5 หลายเดือนก่อน

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

  • @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

  • @Holsp
    @Holsp 4 หลายเดือนก่อน

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

    • @MichaelForestTechnologies
      @MichaelForestTechnologies  4 หลายเดือนก่อน

      That's fasinating, I did not configure them, and I don't speak Dutch haha,

  • @Nikola16789
    @Nikola16789 ปีที่แล้ว

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

  • @basicallybrand
    @basicallybrand 2 ปีที่แล้ว

    doesn't work on mac

  • @Jinjuanchen-df7tn
    @Jinjuanchen-df7tn 4 วันที่ผ่านมา

    Pls fix subtitles

  • @axule4373
    @axule4373 2 ปีที่แล้ว

    666th sub :)

  • @digorroblox
    @digorroblox 5 หลายเดือนก่อน +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.

  • @igorthelight
    @igorthelight 3 ปีที่แล้ว +2

    Two very useful videos:
    * Using static libraries: th-cam.com/video/or1dAmUO8k0/w-d-xo.html
    * Using dynamic libraries: th-cam.com/video/pLy69V2F_8M/w-d-xo.html

  • @alinasrollahzadeh7610
    @alinasrollahzadeh7610 ปีที่แล้ว

    You sound like we got no hopes coding c++