Тёмный

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

King Tut
Подписаться 242
Просмотров 49 тыс.
50% 1

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/examples.html
For tutorial video requests email me at:
kingtutlearning@protonmail.com
#kingtut #tutorials #vscode #cpp

Наука

Опубликовано:

 

23 апр 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 50   
@divyavinod9692
@divyavinod9692 Месяц назад
this is the only thing that worked on my pc since 5 days. Thankyouuu
@user-jf4gb2kb6v
@user-jf4gb2kb6v 11 месяцев назад
this is exactly what I needed
@hiphop12ism
@hiphop12ism 9 месяцев назад
I like how honest you are about googling stuff in between of the tutorial. Not that i mind it. 😅
@kingtutlearning
@kingtutlearning 9 месяцев назад
Google is always our saving grace minus the data collection...
@thestopmotiondude1259
@thestopmotiondude1259 8 месяцев назад
The first actually helpful youtuber ALL HAIL KING TUT
@pharooque3079
@pharooque3079 2 месяца назад
Finally! I tried this with SFML and it worked! Thank you!
@user-tk4sc7ke3r
@user-tk4sc7ke3r 3 месяца назад
thank you so much, I couldn't import raylib and was stuck on it for 4 hours. Finally solved it! Thank you so much!!!!!
@Strl.Lorin2233
@Strl.Lorin2233 3 месяца назад
Thank you so much, your video helped me a lot!
@SalmanYU
@SalmanYU 6 месяцев назад
Im gonna kiss you i have been stuck on linking error for so long thank you
@icemonkefordwick572
@icemonkefordwick572 23 дня назад
thank you mr. tut
@Zach3rry59
@Zach3rry59 4 месяца назад
tyvm going into C/C++ settings fixed all my issues with "NO SUCH FILE"
@DilpreetSingh0
@DilpreetSingh0 5 месяцев назад
That's works. Thanks
@colinbakker4085
@colinbakker4085 Год назад
Thank you, I love you
@iwolfman37
@iwolfman37 3 месяца назад
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
@tusharagarwal5306
@tusharagarwal5306 7 месяцев назад
That's it I am switching back to Java
@emptycode1782
@emptycode1782 6 месяцев назад
Literally me , spent a whole day on these stuff , i dont know if there is any legit tutorial, this is all messy
@user-nr3lm1ug9j
@user-nr3lm1ug9j 5 месяцев назад
bro do whatever you want its ur opinion
@tusharagarwal5306
@tusharagarwal5306 5 месяцев назад
@@user-nr3lm1ug9j then why are you replying?
@steven_doan
@steven_doan 3 месяца назад
That's not what I wanted to see first thing watching this vid lmao 😭
@anishsankar8725
@anishsankar8725 2 месяца назад
​@@steven_doan XD
@loppin6154
@loppin6154 5 месяцев назад
can you make one for poppler library?
@zanagi
@zanagi Год назад
im trying to add dxlibrary to my vscode but it doesnt work for some reason
@SoniaManzoor-cw4ou
@SoniaManzoor-cw4ou 25 дней назад
Did you find solution??
@Fudge_
@Fudge_ 10 дней назад
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 День назад
@Fudge_ I think running the installation again on MSYS2 might fix the issue. g++ should be there unless you installed the MingW C compiler.
@gamingpcgamer459
@gamingpcgamer459 11 месяцев назад
At 6:20 will the library appear if you downloaded that library? And does this work for opengl?
@kingtutlearning
@kingtutlearning 11 месяцев назад
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 11 месяцев назад
Ok so in the msys2 do I put mingw-w64-x86_64-opengl? And in tasks.json do I put -lopengl?
@kingtutlearning
@kingtutlearning 10 месяцев назад
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.
@merisiel
@merisiel 10 месяцев назад
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 10 месяцев назад
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 10 месяцев назад
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).
@aracon9721
@aracon9721 10 месяцев назад
great.... The library I use doesn't have a include folder
@neevaun8308
@neevaun8308 9 месяцев назад
what if it does include a folder how do i install it
@Byron_Vega
@Byron_Vega Год назад
Thank you so much!
@SpeerKING
@SpeerKING 6 месяцев назад
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 6 месяцев назад
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 6 месяцев назад
@@kingtutlearning got you i will check it tomorrow ar work, thank you in advance!
@SpeerKING
@SpeerKING 6 месяцев назад
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 6 месяцев назад
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
@Fluiding
@Fluiding 8 месяцев назад
nice cursor
@DanMiller.
@DanMiller. 10 месяцев назад
listen at 1.75x or else you'll fall asleep
@sad.story_
@sad.story_ 6 месяцев назад
I swear to you that I fell asleep and completed the video after I woke up
@dangerdiesel3106
@dangerdiesel3106 15 дней назад
wtf are the first 2 things you talked about
@davideriva435
@davideriva435 10 месяцев назад
wtf
@gapl9066
@gapl9066 4 месяца назад
I just wasted 12min of my life on this
@piotrmusial9399
@piotrmusial9399 День назад
Nice
Далее
heavy boot #tiktok
00:16
Просмотров 824 тыс.
Нюша на премии МУЗ-ТВ 2024 #нюша
00:11
How To Fix Include Errors in C++
9:14
Просмотров 76 тыс.
C++ Libraries For Beginners
6:12
Просмотров 134 тыс.
I REMADE My First Game 12 YEARS LATER!
37:50
Просмотров 51 тыс.
Writing Code That Runs FAST on a GPU
15:32
Просмотров 540 тыс.
C/C++ CMake Projects in VSCode ❤️
9:11
Просмотров 10 тыс.
Git It? How to use Git and Github
12:19
Просмотров 717 тыс.
Эпоха Intel и AMD заканчивается?!
0:46
ВЫ ЧЕ СДЕЛАЛИ С iOS 18?
22:40
Просмотров 116 тыс.
AI от Apple - ОБЪЯСНЯЕМ
24:19
Просмотров 116 тыс.
ТОП-5 культовых телефонов‼️
1:00