[Solved] gcc is not recognized as an internal or external command operable program or batch file



gcc is not recognized as an internal or external command operable program or batch file and the term ‘gcc’ is not recognized as the name of a cmdlet function script file or operable program are few common error people using gnu gcc compiler encounter while using C compiler to compile their c files. In this video I will not only solve this issue for you but explain you the reason for the same and how to avoid it in the future!
►Click here to subscribe –

Best Hindi Videos For Learning Programming:

►Learn Python In One Video –

►Learn JavaScript in One Video –

►Learn PHP In One Video –

►Machine Learning Using Python –

►Creating & Hosting A Website (Tech Blog) Using Python –

►Advanced Python Tutorials –

►Object Oriented Programming In Python –

►Python Data Science and Big Data Tutorials –

Follow Me On Social Media
►Website (created using Flask) –
►Facebook –
►Instagram (Guaranteed Replies :)) –
►Personal Facebook A/c –
Twitter –

Nguồn: https://svdpch.org/

Xem thêm bài viết khác: https://svdpch.org/cong-nghe/

41 thoughts on “[Solved] gcc is not recognized as an internal or external command operable program or batch file”

  1. bhaiya VS code m gcc not recognised kr rha ha. aur powershell mai gcc likh ne pr fatal error ho jarha h path paste krne pr vo hi recognised error arha h.

    Reply
  2. [Running] cd "e:visual" && gcc main.c -o main && "e:visual"main

    c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../libmingw32.a(main.o):(.text.startup+0xc0): undefined reference to `WinMain@16'

    collect2.exe: error: ld returned 1 exit status

    [Done] exited with code=1 in 0.15 seconds

    sir mere ye error aa rha plss replyyy

    Reply
  3. [Running] cd "e:visual" && gcc main.c -o main && "e:visual"main

    c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../libmingw32.a(main.o):(.text.startup+0xc0): undefined reference to `WinMain@16'

    collect2.exe: error: ld returned 1 exit status

    [Done] exited with code=1 in 0.15 seconds

    sir mere ye error aa rha plss replyyy

    Reply
  4. [Running] cd "e:visual" && gcc main.c -o main && "e:visual"main

    c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../libmingw32.a(main.o):(.text.startup+0xc0): undefined reference to `WinMain@16'

    collect2.exe: error: ld returned 1 exit status

    [Done] exited with code=1 in 0.15 seconds

    sir mere ye error aa rha plss replyyy

    Reply
  5. [Running] cd "e:visual" && gcc main.c -o main && "e:visual"main

    c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../libmingw32.a(main.o):(.text.startup+0xc0): undefined reference to `WinMain@16'

    collect2.exe: error: ld returned 1 exit status

    [Done] exited with code=1 in 0.15 seconds

    sir mere ye error aa rha plss replyyy

    Reply
  6. [Running] cd "e:visual" && gcc main.c -o main && "e:visual"main

    c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../libmingw32.a(main.o):(.text.startup+0xc0): undefined reference to `WinMain@16'

    collect2.exe: error: ld returned 1 exit status

    [Done] exited with code=1 in 0.15 seconds

    sir mere ye error aa rha plss replyyy

    Reply
  7. [Running] cd "e:visual" && gcc main.c -o main && "e:visual"main

    c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../libmingw32.a(main.o):(.text.startup+0xc0): undefined reference to `WinMain@16'

    collect2.exe: error: ld returned 1 exit status

    [Done] exited with code=1 in 0.15 seconds

    Reply
  8. Sir mere visual studio me "g++ is not recognized as an internal and external path" aa raha he 😢 please help he

    Reply
  9. Mera nahi ho paya.
    In power shell it shows thats it done but when i type in my vs code terminal g++./'my file's name'.cpp it shows tha same error that g++ is not recognised as internal or external command…

    Please help me i wanna continue learning c++ with your videos.
    Also mine is window 7 64 bit

    Reply
  10. sir i am getting this error "gcc : The term 'gcc' 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

    + gcc 2.cpp

    + ~~~

    + CategoryInfo : ObjectNotFound: (gcc:String) [], Comma

    ndNotFoundException

    + FullyQualifiedErrorId : CommandNotFoundException"

    Reply
  11. sir maine sary steps same kiye hy but mera error a rha mera gcc file sai chl rhi lekin jb mai gcc main.c type kia to a.exe file b create hogai but execute nai horha please guide

    Reply
  12. Harry bhi gcc chal to gya lakin terminal ma code runner,F3 Or clear ya kam nhi kar raha ha or agar code runner offctioS pa click karta hu to OUTPUT pa chala jata ha or OUTPUT PA ''Connot EDIT IN READ ONLY EDITOR''
    Please solve this problem.

    Reply
  13. C:Program Filesmingw-w64i686-8.1.0-posix-dwarf-rt_v6-rev0mingw32bin I have added the path variable but it is showing same error.I have windows 7 32 bit.What should i do ? I have gcc.exe.

    Reply

Leave a Comment