C++ Tutorial for Beginners #2: Visual Studio Code - Makefile & Multi File Extension | (Linux)

preview_player
Показать описание
C++ Tutorial for Beginners Episode 2 where we use Visual Studio Code on Linux and add the C/C++ Makefile Project Extension. This C++ Tutorial is intended for C/C++ Beginners with Programming in 2021 and will help you use Visual Studio Code with Programming a C/C++ project on Linux. Make sure to subscribe so you can follow the series as it develops.

Since Visual Studio Code doesn’t have an easy way of compiling multiple files together we will install a new extension called C/C++ Makefile Project. This extension will help generate a makefile for our project and allow us to compile multiple source files together very easily no matter home many we have. This will be useful down the road. We'll be posting more videos and start our program soon so stay tuned and make sure to subscribe.

My Linux Bundle is here:

Share this free tool and support Small YouTubers
(I made this tool to help creators)

Download Visual Studio Code:

Name of extensions installed:
1. C/C++ Makefile Project

Linux Install Videos:

Linux Talk :

Software Use:

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

beginner in C here struggling with assignments for creating a make file. I'm so glad I found your video! thanks so much!

yoofyoof
Автор

For people who get an error: "make : The term 'make' is not recognized as the name of a cmdlet, function, script file, or operable program."
Do this:
1. Make sure you've got MinGW installed.
2. Add MinGW to your system path.
3. Instead of "make" use: "MinGW32-make"

galaxymariosuper
Автор

You saved me after 2 weeks of trying to write a generic makefile from scratch and hours and hours of debugging

adhamelbahrawy
Автор

Nice. I'm a non-ide kinda developer and found #1 & #2 tutorial very helpful getting a compile to work in VS. Instead of editing the Makefile SRCDIR, you can also drag/drop the main.cpp into the src directory and then complie/run.

birdwithoneleg
Автор

this dude makes stuff simple ...thanks budd

sofianeyaacoubi
Автор

here's a tip, to copy from terminal most common is Ctrl+Shift+C and paste on your VSCode using Ctrl+P and to paste in terminal use Ctrl+Shift+P

avishekpdsyouthoob
Автор

You got a new subscriber, it's amazing how easy you explain everything!

joaquinortiz
Автор

what if I send these file to another computer, when they do not use the same path for example in your case is /home/savvynik/...///... in my case savvynik can be different name.

muonline
Автор

Hey! I've tried to do the same on Win10 but failed. Is there any instrument for Wn10 that can do the same? How to configure this extention for WIn10? Thanks!

gju
Автор

Thanks so much! Now I can move forward with intro to programming class!

guzgamer
Автор

Also having the same g++: fatal error: no input files
and can't figure out why there is .cpp file after -Wall and before -o test. Kept redoing the tutorial from scratch and can't put my finger on it.

Edit: It was as simple as making sure your directories and file names have no spaces at all. Problem solved!

madamadadane
Автор

@SavvyNik i get problem when i make MakeFile i shows:
g++ -std=c++11 -Wall -o Tera
g++: fatal error: no input files
compilation terminated.
Makefile:36: recipe for target 'Tera' failed
make: *** [Tera] Error 1
help..

Mandeepsingh-jocf
Автор

Hi, thanks for the video. I am wondering why after I use "make", it did nothing, literally nothing is printed

yima
Автор

Man you're more than awesome. Thanks.

pallasepithet
Автор

Hey I just had a quick question. For some reason bash doesn't recognize make as a command; I made sure that the extension was enabled but still nothing. Is there anything I can do to resolve this. Thank you and this video was really informative.

DavidMartinez-higb
Автор

I can't get "make" to work in VS Code installed on Windows 10. Can I get some help, please?

silviapreston
Автор

Omg, i searched for this for so long. You should rename the video in something like makefile for vs code multifile project. Cause it is not obvious.

МаксимКузьмин-мз
Автор

thank you, it's a clear explainig

ahmedguetat
Автор

New to C++? Start learning the Basics here - @JxUE (with 30+ videos!!)

SavvyNik
Автор

Is there any tutorial available to do the same thing on windows ? (build all project files using make)

ahmedifhaam