How to put in C++ External Library in VS Code

Поделиться
HTML-код
  • Опубликовано: 24 сен 2024
  • In this video I will show you how to implement C++ external library (e.g. Raylib) into VSCode.
    Command to download Raylib on MSYS2:
    pacman -S mingw-w64-x86_64-raylib
    Include Directory: C:\msys64\mingw64\include
    Linker (put it after -o): "-lraylib"
    Link to Raylib Sample Code: www.raylib.com...
    For tutorial video requests email me at:
    kingtutlearning@protonmail.com
    #kingtut #tutorials #vscode #cpp

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

  • @divyavinod9692
    @divyavinod9692 4 месяца назад +7

    this is the only thing that worked on my pc since 5 days. Thankyouuu

  • @hiphop12ism
    @hiphop12ism Год назад +5

    I like how honest you are about googling stuff in between of the tutorial. Not that i mind it. 😅

    • @kingtutlearning
      @kingtutlearning  Год назад +3

      Google is always our saving grace minus the data collection...

  • @pharooque3079
    @pharooque3079 6 месяцев назад +2

    Finally! I tried this with SFML and it worked! Thank you!

  • @tusharagarwal5306
    @tusharagarwal5306 10 месяцев назад +30

    That's it I am switching back to Java

    • @emptycode1782
      @emptycode1782 9 месяцев назад +13

      Literally me , spent a whole day on these stuff , i dont know if there is any legit tutorial, this is all messy

    • @AnkanPal-v1x
      @AnkanPal-v1x 8 месяцев назад +2

      bro do whatever you want its ur opinion

    • @tusharagarwal5306
      @tusharagarwal5306 8 месяцев назад

      @@AnkanPal-v1x then why are you replying?

    • @steven_doan
      @steven_doan 7 месяцев назад +8

      That's not what I wanted to see first thing watching this vid lmao 😭

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

      ​@@steven_doan XD

  • @Jumpy29-d4l
    @Jumpy29-d4l 6 месяцев назад +2

    thank you so much, I couldn't import raylib and was stuck on it for 4 hours. Finally solved it! Thank you so much!!!!!

  • @user-jf4gb2kb6v
    @user-jf4gb2kb6v Год назад +8

    this is exactly what I needed

  • @legendsx3739
    @legendsx3739 15 дней назад

    ONLY TUTORIAL WORKED FOR ME YAYYYYYYYYYYYYYYYYYYYYYYYY!🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳

  • @SalmanYU
    @SalmanYU 9 месяцев назад +2

    Im gonna kiss you i have been stuck on linking error for so long thank you

  • @thestopmotiondude1259
    @thestopmotiondude1259 11 месяцев назад

    The first actually helpful youtuber ALL HAIL KING TUT

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

    Thanks for the help! By the way,what icons do you use for VS Code?

  • @Strl.Lorin2233
    @Strl.Lorin2233 6 месяцев назад +1

    Thank you so much, your video helped me a lot!

  • @aarondelarosa3146
    @aarondelarosa3146 4 дня назад

    How do you install C++ Boost libraries on Visual Studio 2022?

  • @Zach3rry59
    @Zach3rry59 8 месяцев назад +1

    tyvm going into C/C++ settings fixed all my issues with "NO SUCH FILE"

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

    thank you mr. tut

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

    is there any way you can show how to do this with the ucrt64 runtime? i'm trying to learn how to use external libraries, mainly nlohmann/json but it's just not working and i don't know why

  • @DilpreetSingh0
    @DilpreetSingh0 9 месяцев назад +1

    That's works. Thanks

  • @zanagi
    @zanagi Год назад +3

    im trying to add dxlibrary to my vscode but it doesnt work for some reason

  • @aracon9721
    @aracon9721 Год назад +2

    great.... The library I use doesn't have a include folder

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

      what if it does include a folder how do i install it

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

    at 10:42 when you change the folder to mingw-64 g++ stopped appearing under the run dialog. I checked the folder and g++ isn't there do you know how to fix?

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

      @Fudge_ I think running the installation again on MSYS2 might fix the issue. g++ should be there unless you installed the MingW C compiler.

  • @loppin6154
    @loppin6154 9 месяцев назад +1

    can you make one for poppler library?

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

    Thank you, I love you

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

    At 6:20 will the library appear if you downloaded that library? And does this work for opengl?

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

      Should work for Opengl. The if you download the library in a location that you can find, it will appear. Once you linked up the library, it will work when you program.

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

      Ok so in the msys2 do I put mingw-w64-x86_64-opengl? And in tasks.json do I put -lopengl?

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

      I found this link that can help you (sorry for the late response):
      medium.com/swlh/setting-opengl-for-windows-d0b45062caf
      Also this works for VSCode as well despite showing you how to do it in Code::Blocks. Get the linkers from that link I provided you and apply it into VSCode.

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

    I am getting problems with curl library do u have some tips, i dont get any error messages but in the terminal it tells me that -lcurl could not find

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

      I usually go to lib folder (usually every c++ external library have that folder) and check the name of the lib file and use that. Also reading their tutorial and applying it to VSCode also helps.

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

      @@kingtutlearning got you i will check it tomorrow ar work, thank you in advance!

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

      I looked at the lib folder and found libcurl.dll.a and libcurl.a, so i tried "-llibcurl" but it still doesn´t work @@kingtutlearning

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

      nvm i build new project from scratch and it worked, thanks for you video man!!! AND to all, who dont need extensions or stuff like that, who just need libraries use visual studio instead visual studio cpde

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

    I still get the error message you got at 9:55 and it was already mingw64 in my tasks.json, do you have any idea why?

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

      For anyone having the same issue, the description says to put the linker -lraylib after the -o, but you have to put it at the end of the list for it to work

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

      I think it's better to copy the whole directory and paste it. Also check to make sure you have MingW64 compiler installed along with GDB (which is needed for debugging).

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

    wtf are the first 2 things you talked about

  • @DanMiller.
    @DanMiller. Год назад +1

    listen at 1.75x or else you'll fall asleep

    • @sad.story_
      @sad.story_ 10 месяцев назад

      I swear to you that I fell asleep and completed the video after I woke up

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

    Whaaaaaaaaaaaaaaaaat????😮

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

    nice cursor

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

    wtf

  • @gapl9066
    @gapl9066 7 месяцев назад +1

    I just wasted 12min of my life on this

  • @piotrmusial9399
    @piotrmusial9399 3 месяца назад +1

    Nice

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

    Thank you so much!