Run C++ and C in Visual Studio Code | Mac and Windows!

preview_player
Показать описание

Timestamps:
00:00 - Intro
02:18 - Compile on Mac
03:18 - Compile on Windows
05:18 - Running VS Code
07:35 - Code Runner Configuration
09:36 - C++11 and C++20 Compilation

~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~

Рекомендации по теме
Комментарии
Автор

Alright so just in case anyone got stuck like I did on the Windows portion. I followed the C++ installation guide on visual studio code. Make sure you add the environment variables for C:\msys64\ucrt64\bin to access g++ --version and gcc --version. Unfortunately gdb --version was not running in command terminal since it was a unknown command. According to the visual studio code website this is because some MinGW-w64 toolset packages are not installed. I was able to run the command 'pacman -S --needed base-devel mingw-w64-x86_64-toolchain' from the MSYS2 MINGW32 console. I then pressed enter to install all the packages. I then could add the path C:\msys64\mingw64\bin to my environment variables, since it was no longer empty. Hopes this helps anyone that gets stuck on windows with being unable to run gdb --version.

tannerthorne
Автор

Thank you so much!!!! I spent the last 24 hours trying to get my VS code back to its original state after a CMAKE error. Can’t thank you enough. Just subscribed and liked your channel.

scottsher
Автор

You’ve just earned a sub, I was struggling with this for days (I just got started), appreciate your help !

alfonsocorvino-gqdp
Автор

Caleb Curry you are a life saver brother, thank you so much for your very informative and helpfull videos
God Bless you and I look forward to more of your coding courses. (The new one on C++)

eeaa
Автор

omfg I actually got it to work, thank you, dude!

platoschauvet
Автор

bro thank you for this video you are my hero.

Gocppjp
Автор

Thanks for the VS code videos. 👍
Something I wish I knew when I started coding is how easy it is to do version control and upload to github directly from within VS Code.
Or how to create a cmake project from the command palette in order to compile my code on different platforms.

carborundum
Автор

i watched 10 videos and yours finally helped

jatinbalchandani
Автор

Thank You so much, I got how to setup VS Studio Code with the help of your video, ❤

reeyacharniya
Автор

Hey, I've got a problem. I noticed that at 5:49, your dedicated task compiler was /usr/bin/g++ while mine is C:\msys64\mingw64\bin.exe( why is my different). Also for some reason the ./example for me it doesn't work. It just says this: The term './example' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1. Any tips/fixes?

elektro-uumb
Автор

Thank you much for this video, you're a life saver!

gd_design
Автор

I was getting extremely frustrated. Thank you for the enlightenment boss!

alejandroflorez
Автор

Zero relevant links in the description. Commands aren't there to conveniently copy-paste. Zero responses in the comment section. There's absolutely no way your 564K subscribers are real people.

Omar_Al_Seddik
Автор

I'm probably not the first to point this out but. the path is wrong. if you follow VScodes example then the bind folder is sett to C:\msys64\ucrt64\bin by default. Other than that great video!

patrickbottiger
Автор

I'm not getting the GDB i.e. the debugger, I got the g++ and gcc

Dexterx
Автор

can someone help with the where you have to enter the pacman -s command

Blue_SparkPro
Автор

the output or the "hellow world" aint on the debug console, it aint anywhere actually

sleepyboi
Автор

whenever I try to run any c++ code on vs it tells me the the launch.json file is not found

calculatedrisks
Автор

When I type g++ it keeps telling me it's not recognized.. what am I doing wrong

Doova
Автор

How do you know if i am using c11 standard or c99 and same with c++ 11 or c++ 23

steveavecillas