How to fix gcc & g++ is not recognized as an internal and external Command Error in Terminal
Jun 7, 2025
Buy the full source code of application here:
Show More Show Less View Video Transcript
0:00
uh hello guys uh welcome to this video
0:02
so in this video I will show you if you
0:05
can't access your GCC command from your
0:08
terminal uh GCC is not recognized as an
0:11
internal or external command if you're
0:13
getting this error message or G++ if you
0:16
write this and again you're getting the
0:18
same error so these are the C++
0:21
compilers while you compile your
0:23
applications uh if you're getting this
0:26
error message then you need to simply
0:28
first of all download the C++ compiler
0:32
i'm assuming that you have installed it
0:34
but if you haven't installed it just
0:36
visit this
0:40
website just type Google as the very
0:43
first website which comes right here
0:45
simply go to this website and download
0:47
the C++ compiler this is actually the C
0:50
exe file will come right here simple
0:53
step uh step uh install process will be
0:56
there you need to simply click next next
0:58
next and then it will install
1:02
this but after installing if you are
1:05
getting this error message still you
1:07
can't access inside your terminal so
1:10
then I will show you so by default it's
1:14
stored in the C directory and it will
1:17
create a
1:18
folder
1:20
my this is actually the folder that it
1:22
will
1:23
create so it's uh so my system is 64-bit
1:27
Windows machine so if you are using
1:30
32-bit then just make sure that you
1:33
select your operating system correctly
1:37
so then there will be a folder called as
1:42
uh just select here main
1:46
GW32 mining GW64 so if you are using
1:50
32-bit then you will enter into this
1:52
folder mine is 64bit so I will go to
1:55
this folder and just open the bin
1:58
directory and here you will see all the
2:00
executables which will be
2:02
present so if you try to type the same
2:06
command GCC you will see the command
2:09
will perfectly work or G+
2:13
G++ then also the command will work so
2:16
what we need to do you just need to
2:18
right click copy this entire location
2:20
and just open the environment
2:24
variable and just open the system path
2:31
variable add this complete path
2:36
here and just uh restart the terminal
2:40
after making these changes uh just type
2:42
the same command G++
2:46
GCC so you will see now you'll be able
2:49
to use the C++ compiler from the
2:52
terminal very easily just follow the
2:54
step-by-step process uh thank you very
2:57
much for watching this video and also
2:59
check out my website
3:01
freemediatools.com which contains uh
3:04
thousands of tools
#Programming
#C & C++
