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
this is the only thing that worked on my pc since 5 days. Thankyouuu
same😭😭
I like how honest you are about googling stuff in between of the tutorial. Not that i mind it. 😅
Google is always our saving grace minus the data collection...
Finally! I tried this with SFML and it worked! Thank you!
That's it I am switching back to Java
Literally me , spent a whole day on these stuff , i dont know if there is any legit tutorial, this is all messy
bro do whatever you want its ur opinion
@@AnkanPal-v1x then why are you replying?
That's not what I wanted to see first thing watching this vid lmao 😭
@@steven_doan XD
thank you so much, I couldn't import raylib and was stuck on it for 4 hours. Finally solved it! Thank you so much!!!!!
this is exactly what I needed
ONLY TUTORIAL WORKED FOR ME YAYYYYYYYYYYYYYYYYYYYYYYYY!🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳🥳
Im gonna kiss you i have been stuck on linking error for so long thank you
The first actually helpful youtuber ALL HAIL KING TUT
Thanks for the help! By the way,what icons do you use for VS Code?
Thank you so much, your video helped me a lot!
How do you install C++ Boost libraries on Visual Studio 2022?
tyvm going into C/C++ settings fixed all my issues with "NO SUCH FILE"
thank you mr. tut
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
That's works. Thanks
im trying to add dxlibrary to my vscode but it doesnt work for some reason
Did you find solution??
great.... The library I use doesn't have a include folder
what if it does include a folder how do i install it
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?
@Fudge_ I think running the installation again on MSYS2 might fix the issue. g++ should be there unless you installed the MingW C compiler.
can you make one for poppler library?
Thank you, I love you
At 6:20 will the library appear if you downloaded that library? And does this work for opengl?
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.
Ok so in the msys2 do I put mingw-w64-x86_64-opengl? And in tasks.json do I put -lopengl?
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.
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
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.
@@kingtutlearning got you i will check it tomorrow ar work, thank you in advance!
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
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
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?
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
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).
wtf are the first 2 things you talked about
listen at 1.75x or else you'll fall asleep
I swear to you that I fell asleep and completed the video after I woke up
Whaaaaaaaaaaaaaaaaat????😮
nice cursor
wtf
I just wasted 12min of my life on this
Nice
Thank you so much!