GCC/ G++ "no such file or directory" error even afer settings the right path, fixed!

Поділитися
Вставка
  • Опубліковано 11 вер 2024
  • Outro Music:
    Song: Desmeon - Hellcat
    Music provided by NCS Music.
    NCS UA-cam Channel: / @nocopyrightsounds
    Desmeon: / iamdesmeon

КОМЕНТАРІ • 385

  • @--Manoj007
    @--Manoj007 2 роки тому +51

    For the problem do not give space in the file name
    Example -
    New file.html = wrong
    Newfile.html = corrrect
    Conclusion: don't give space in file name
    After completion of program (IMP= SAVE FILE AND THEN RUN CODE)

    • @Naresh_Sharma
      @Naresh_Sharma  2 роки тому +7

      Yes bro, I had forgot to tell about this in the video. Thanks for the information

    • @binarylover
      @binarylover 2 роки тому +1

      @@Naresh_Sharma but i was able to run with space in names but now i m unable

    • @binarylover
      @binarylover 2 роки тому

      u can just name those file in quots

    • @binarylover
      @binarylover 2 роки тому

      change code runner setting.josn --. "cpp": "cd $dir && g++ '$fileName' -o '$fileNameWithoutExt' && &'$dir$fileNameWithoutExt.exe'", in code-runner.executorMap and this problem will be solved

    • @Naresh_Sharma
      @Naresh_Sharma  2 роки тому +1

      @@binarylover well, it's better not to use space tho. Cause in that way you can even use code runner extension to run your file in one click

  • @digvijaygunjal840
    @digvijaygunjal840 3 роки тому +36

    Thank you so much bro. 🙏🙏🙏 I almost lost my half day in solving this problem. You are life saver.👍🙏

    • @Naresh_Sharma
      @Naresh_Sharma  3 роки тому +4

      Welcome bhai

    • @keshavagarwal5900
      @keshavagarwal5900 3 роки тому +1

      Digvijay I lost 2 months while facing this problem. I only learnt theory in programming as there was no one to help me to solve this problem

    • @digvijaygunjal840
      @digvijaygunjal840 3 роки тому

      @@keshavagarwal5900 Same problem have occurred to me. Let me know that where that GCC file you have installed in (path).

    • @shatikjayin7501
      @shatikjayin7501 2 роки тому

      Ikr same thing happened to me

    • @arnavundepatil1755
      @arnavundepatil1755 2 роки тому

      I too 😛

  • @krcpr007
    @krcpr007 3 роки тому +22

    Thanks bro😭😭😭
    Love from CSE student ❤️

  • @kireeti1120
    @kireeti1120 2 роки тому +4

    If anyone still have some issue or the issue is not resolved then *try renaming your file without any spaces* in between!!!
    It helped me hope some one finds it helpful!!!

  • @abrar_edits_
    @abrar_edits_ Місяць тому +1

    Thank you so much brother I have been trying to solve this by seeing UA-cam videos but u explained very perfectly as any member can store it in their brains thank you so much brother ❤

  • @jamalkhan4353
    @jamalkhan4353 3 роки тому +8

    Hello Sir,
    Sir code likhne ke baad, jb mai run krta hun tb terminal pr
    gcc.exe: error : . /First : No such file or directory
    gcc.exe: error : program.c : No such file or directory
    gcc.exe: fetal error: no input files compilation terminated.

    • @Naresh_Sharma
      @Naresh_Sharma  3 роки тому +6

      File save Karte time Jo name dete ho, usme space mat dena. Space ki jagah underscore (_) use kar lo

    • @mr_nobody472
      @mr_nobody472 3 роки тому +1

      Same problem

    • @mr_nobody472
      @mr_nobody472 3 роки тому +1

      Tell me solution

    • @anonymous-wd2yw
      @anonymous-wd2yw 2 роки тому

      hello im getting same error. Please tell me the solution

  • @user-jr6zr9rc2w
    @user-jr6zr9rc2w 3 роки тому +7

    I watched 10 to 15 videos but didn't worked
    Finally u r video solved my problem
    Now I can peacefully run my c c++ on visual code
    Thank thank thanksssss 😍♥️

  • @happylife7706
    @happylife7706 Рік тому +1

    Hello hello hello,
    Please I need your help!!!
    I have downloaded some other libraries from github and have installed them in the Enviornment of my laptop. But still vs code is not supporting my downloaded header file( terminal just keep on showing "fatal error") how can I solve this please help me!!

  • @satyatulachan2650
    @satyatulachan2650 2 роки тому +2

    Even afterr trying in a lot of different ways ,i couldn't figure it out what i was doing wrong but after watching ur video it solved it ,
    thanks a lottt mate ;)

  • @harshrajsinghchauhan49
    @harshrajsinghchauhan49 3 роки тому +5

    Thanks man !!!! Finally after spending whole day my vs code is runnung properly now.

    • @meghasingh1609
      @meghasingh1609 3 роки тому +1

      Hey hello can you tell me how run your code cuz I trying since 5 days but result nothing plz tell me plz bro I am totally confused in it how I fix it plz tell me

    • @Naresh_Sharma
      @Naresh_Sharma  2 роки тому +1

      That's nice to know man ^-^

    • @Naresh_Sharma
      @Naresh_Sharma  2 роки тому

      @@meghasingh1609 is it working for you now?

    • @meghasingh1609
      @meghasingh1609 2 роки тому

      @@Naresh_Sharma yeah

    • @Naresh_Sharma
      @Naresh_Sharma  2 роки тому

      @@meghasingh1609 that's great

  • @CSE___AMITKUMARYADAV
    @CSE___AMITKUMARYADAV 3 роки тому +3

    Thank you so much ❤❤❤❤ Sir .
    This is the only video on UA-cam related to this issue..

    • @Naresh_Sharma
      @Naresh_Sharma  2 роки тому

      Happy to know that this video helped you ^-^

  • @mrnothingspecial3
    @mrnothingspecial3 2 роки тому +1

    This helps alot. My CPP file was in E folder and I was trying to open it from C folder. After I saw the Terminal I changed it to E folder and it is working perfectly.

  • @samarthadsare5579
    @samarthadsare5579 Рік тому +1

    har jagh matha patak ne baad bhai teri video dekha . thanks bro helped a lot

  • @eiericksilva
    @eiericksilva 2 роки тому +9

    Maluco é brabo! Desenrolei com as legendas e consegui resolver. Obrigado!

  • @anuraglodhi7448
    @anuraglodhi7448 Рік тому

    This literally helped me a lot bhai.... I was facing this problem since 1-2 months.... Just watching faltu video.... Your video is really genuine.. Congrats 🎉🎉🎉 You gained my heart and a subscriber 🎉

  • @Aaron-hh8nx
    @Aaron-hh8nx Рік тому

    for me its
    'g++.exe' is not recognized as an internal or external command,
    operable program or batch file.

  • @whats_coding3367
    @whats_coding3367 3 роки тому

    C:\Users\Admin>./answer
    its still not working: The command "." is either misspelled or
    could not be found.
    You have any idea?

  • @TravelThisWorldForever
    @TravelThisWorldForever Рік тому

    bro mera system ma ye problem h ki vo jab ham # likhta h to vs code ushpar red line dikha rha h. or ye error dikhata ha =Error while processingC/C++(clang-diagnostic-error)
    stddef.h(216, 23): typedef redefinition with different types ('unsigned int' vs 'unsigned long long') . please solve this.

  • @vikassonkar861
    @vikassonkar861 2 роки тому +1

    Not able to solve my issue 😔😔

  • @fringeanomaly9284
    @fringeanomaly9284 2 роки тому

    My program isn't running ... I am getting the same stuff as u like "cd .........; If ($?) {gcc .................}; If ($?) {.\......}
    What to do sir?... You were atleast getting hellow world but I am getting nothing

  • @sagarrawat7203
    @sagarrawat7203 2 роки тому

    I have error that gcc is not recognised as the name of a cmdleg, function, scridt................. Try again
    . What to do for this error 😭

  • @peakypicaso906
    @peakypicaso906 Рік тому +2

    Thanks bro you explained it better than anyone 👍

  • @veeraltiwari2935
    @veeraltiwari2935 Рік тому

    Thanks man thanks a lot.... This problem was troubling me for months... Thanks to you I am over it now 🙏❤

  • @Simple.Simple
    @Simple.Simple 3 роки тому +1

    Cannot convert 'FILE* {aka _iobuf*} to 'const char *' for argument '2' to 'FILE* freopen(const char",FILE*)' freopen ("input.txt "r", stdin);

    • @Naresh_Sharma
      @Naresh_Sharma  3 роки тому

      Sounds like it's the problem in your program. Does your code contains FILE pointer?

  • @piyushbhatia237
    @piyushbhatia237 2 роки тому

    Bro it's not working I phase problem in 2 months pls help me
    But in my pc createprocess : No such file or directory

  • @sushantpawar5635
    @sushantpawar5635 3 роки тому

    I did everything ..and I am trying to solve this issue since month ..I am frustrated like hell😡😡😡

  • @shailavisrivastava9389
    @shailavisrivastava9389 Рік тому

    sir mere laptop me jb program run krte h to launch json kr k likhk ata aur phir jb uspe click kro to add confiration ata.

  • @pratikshapagar9647
    @pratikshapagar9647 2 роки тому

    Am doing a simple Hello world program in C in vs code it's showing
    stdio.h: No such file or directory
    What to do 😭😭

  • @ashish4815
    @ashish4815 2 роки тому

    i am using python in vscode and don't know why but vscode is not reading file that i've created? any solution for this?

    • @Naresh_Sharma
      @Naresh_Sharma  2 роки тому

      What error are you getting?

    • @ashish4815
      @ashish4815 2 роки тому

      @@Naresh_SharmaPython is not printing the content of file that i've created😑

  • @rizwanshaikh6030
    @rizwanshaikh6030 Рік тому

    Amazing bro keep making such vedios . Love you bro ❤️

  • @rohitroy-fi9xv
    @rohitroy-fi9xv 3 роки тому

    Hey bro can u help me with this statement bash : cd : too many arguments
    Due to this output of my codes are not displayed

  • @uxtzone4482
    @uxtzone4482 2 роки тому

    Bhai it is not working ... I m using linux but it is not working in it ?? What I can do ?

  • @perumallavijay4289
    @perumallavijay4289 Рік тому +1

    When file is in desktop use this command $cd desktop then you will move to desktop there you see ur file bro

  • @asifghaus3504
    @asifghaus3504 3 роки тому

    Bhai maine vs code mai 2 folder create kre hai ....1 folder ke program ok hai...but
    2nd folder ke program run to ho rhe hai lekin jab terminal se krte hai...toh
    No such file or directory likh kar aa RHA hai...

    • @Naresh_Sharma
      @Naresh_Sharma  3 роки тому

      Terminal se run kartr ho... Matlab ".\program.exe" likh ke run karte ho?

  • @abubakramjad8677
    @abubakramjad8677 2 роки тому

    I have the same problem on Mac so what should I do with it??

  • @zenonzenon9127
    @zenonzenon9127 2 роки тому +3

    Thank you so much bro you saved my day ❤️❤️❤️

  • @rajchaudhari6584
    @rajchaudhari6584 3 роки тому +1

    Thank you very much❤️❤️❤️
    I wish I would have seen it before watching 30-40 fake videos...

  • @CodeYatra
    @CodeYatra 2 роки тому

    Bhai plz help me I am unable to run program on visual studio code it is showing fatal error ....how can I solve this pls...

  • @manishlodhi4562
    @manishlodhi4562 Рік тому

    5:20
    There's a debugging sign next to the Play button
    What should I do?
    Please help

  • @pathisampath8057
    @pathisampath8057 3 роки тому

    gcc.exe: fatal error: cannot execute 'cc1': CreateProcess: No such file or directory compilation terminated. please help me out this while i run c program

  • @indianfun1362
    @indianfun1362 2 роки тому

    Mere environment setting mein path nam ka folder hi nhi hai

  • @voldemortff8183
    @voldemortff8183 3 роки тому +1

    At Last I got the solution.Thanks a lot broo!!!❤

  • @dheeraj1465
    @dheeraj1465 2 роки тому

    in my vs code explorer option is not showing help me

  • @lsjmartin6220
    @lsjmartin6220 8 місяців тому +1

    Bro nothing worksssssss

    • @thecritiquer9407
      @thecritiquer9407 2 місяці тому

      😭i have seen all videos on utube regarding this. none of it is working, if u find the right one plz link me.

  • @riott9464
    @riott9464 3 роки тому

    Bro code runner se run krta hu to ho rha h
    Pr gcc tyoe krke kr rha hu to fatal error aata h kya kru

  • @summanray7802
    @summanray7802 2 роки тому +1

    Really helpful how to thank you ...🙌🏻🙌🏻

  • @meshramab1
    @meshramab1 Рік тому

    I am a new learner of c prog, aged 70 years. Thanks for explaining so well.

  • @stanzinnorboo7083
    @stanzinnorboo7083 3 роки тому

    i am working in my directory named as D:\fortran
    but I am getting error as :- gfortran.exe: error: Create process: No such file or directory.
    please help

  • @maharun
    @maharun 2 роки тому +2

    you saved my day bro.... i was going insaneeeeeeeeeeeeeee.....

  • @mayankgoel6140
    @mayankgoel6140 3 роки тому

    br i did the same the error is gone but when i run it it goes to output window and show access denied

    • @Naresh_Sharma
      @Naresh_Sharma  3 роки тому

      Go to settings and type code runner, then scroll down and find a setting with the name "run in terminal". Check that box

  • @strangegaming9744
    @strangegaming9744 Рік тому

    I have same problem but my code runner is already installed then also

  • @wingamer0121
    @wingamer0121 Рік тому

    Bro I fill exist in the target folder but the also show this error so what can we do now pls reply ❤️

    • @Naresh_Sharma
      @Naresh_Sharma  Рік тому

      I didn't understand what you are trying to say ..

  • @HardikNegi-bj5if
    @HardikNegi-bj5if 2 роки тому

    bro cd path change kaise kr skte h terminal mai

  • @krishsood7556
    @krishsood7556 2 роки тому

    Bro I am getting the output but at terminal it is showing error

  • @billyridgeway4074
    @billyridgeway4074 2 роки тому

    Thank you, I've spent months with the same problem.

  • @abhijeet3660
    @abhijeet3660 3 роки тому

    Heyy,my terminal is targeting at the same folder where my cpp file is,still its showing,
    g++.exe error no such file or directory,
    What to do now..???

    • @Naresh_Sharma
      @Naresh_Sharma  3 роки тому

      Open the folder manually

    • @Naresh_Sharma
      @Naresh_Sharma  3 роки тому

      In the "file" option, look for the "open folder" option

    • @Naresh_Sharma
      @Naresh_Sharma  3 роки тому

      Then select the folder you want to choose

    • @abhijeet3660
      @abhijeet3660 3 роки тому

      @@Naresh_Sharma yss it worked for one file, then again its showing same for different file, present in that folder

    • @abhijeet3660
      @abhijeet3660 3 роки тому

      Earlier it was working without opening that folder manually that,again after some time it Started to show that error again

  • @kashishrathore48
    @kashishrathore48 Рік тому

    Bro I'm frustrate. Ab pta kese chalega vo kha dhund rha h file koi location toh bta

  • @shashankshekharmishra5969
    @shashankshekharmishra5969 2 роки тому

    Thanks Bhai Sidhi si baat thi jo ki mai samajh nahi paya

  • @arkajitchakraborty2720
    @arkajitchakraborty2720 2 роки тому

    Thank you sir , your this video solved a big tension of mine .

  • @tps8470
    @tps8470 2 роки тому +1

    Best Video
    Instant solution to my problem

  • @dynamogaming4755
    @dynamogaming4755 3 роки тому +1

    Thanks Bro, You helped me a lot.

  • @yashmine9605
    @yashmine9605 Рік тому

    My file is on that place then also it cannot compile it

  • @abhishekvaishnavv
    @abhishekvaishnavv 3 роки тому +1

    Thanks.. It helped me alot❤️

  • @aditishrivastava6998
    @aditishrivastava6998 2 роки тому

    Bhaiya i did everything correct but i am not getting that answer file.....please tell me what to do

    • @Naresh_Sharma
      @Naresh_Sharma  2 роки тому

      What's the error?

    • @aditishrivastava6998
      @aditishrivastava6998 2 роки тому

      @@Naresh_Sharma bhaiya i am not able to find .exe file or any other file ..like in vdo that answer file ...in my folder even after doing all the steps correctly...

  • @mamtamehta1854
    @mamtamehta1854 Рік тому

    Hyyy jab program. Ka folder me koi file. Name banate hai phir uske saath hi ak or file Q bnta hai jaise firstprogram.c banaye hai toh ak or sath me file banta firstprogram.exe se toh iska ky matlb hua btaiye any one🙄🙄🙄🙄

    • @Naresh_Sharma
      @Naresh_Sharma  Рік тому

      It's perfectly normal. C file compile hone ke baad .exe file Banta hai. Aur actually ke .exe file run hota hai terminal me, naa ki .c file

    • @mamtamehta1854
      @mamtamehta1854 Рік тому

      @@Naresh_Sharma thanku 😊

  • @hemantuikey2144
    @hemantuikey2144 Рік тому

    *Thank you Bro I've spent months with the same problem. *

  • @MYWORLD-qy8tk
    @MYWORLD-qy8tk 2 роки тому

    bro i tried it but not working plz................................... help me bro

  • @shriramofficial4349
    @shriramofficial4349 3 роки тому +1

    Thank you.May God bless you forever.I can focus on coding

  • @073_hrithikjain6
    @073_hrithikjain6 3 роки тому +1

    bhai ye bali error sahi karwa do !!
    \Program 'a.exe' failed to run: Access is deniedAt line:1 char:1
    + .\a.exe
    + ~~~~~~~.
    At line:1 char:1
    + .\a.exe
    + ~~~~~~~
    + CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

    • @Naresh_Sharma
      @Naresh_Sharma  3 роки тому

      Bro, ye problem shayad powershell ya command line prompt me hota hai, iske baare me mujhe jaankari nahi hai :(

    • @Naresh_Sharma
      @Naresh_Sharma  3 роки тому

      Tumhe manually type karke apne program ko compile aur run karna hoga :(

    • @manavjain9648
      @manavjain9648 3 роки тому

      Solve hui problem?

  • @ezhilpondurai8820
    @ezhilpondurai8820 Місяць тому

    Thanks a lot brother
    It worked

  • @ss-xv1mk
    @ss-xv1mk 3 роки тому

    After watching many videos....
    Finally 😄

  • @rathingorai5788
    @rathingorai5788 3 роки тому +1

    Hello bro same problem in iostream.h but stdio.h is runnig😫😓😓

    • @Naresh_Sharma
      @Naresh_Sharma  3 роки тому +1

      Can you elaborate your problem please

    • @rathingorai5788
      @rathingorai5788 3 роки тому +1

      @@Naresh_Sharma i just try your tips but not working

  • @mr.sheikh07
    @mr.sheikh07 Рік тому

    Thank you so much bro.🙏🙏🙏🌹

  • @captain_11155
    @captain_11155 2 роки тому +3

    He is leaning code with Harry 😂

  • @AshishKumar-hy9ft
    @AshishKumar-hy9ft Рік тому

    Thanks man you save my day ✌️

  • @arshitaanchaliya1583
    @arshitaanchaliya1583 Рік тому

    I m getting the same error even though I followed all the steps shown in the video

  • @racheltornior6250
    @racheltornior6250 3 роки тому

    Hey ! trying to use python in visual code and I get this message as I run the code "Working folder not found, open a folder and try again" the path must be wrong but I can't find where to fix it

    • @Naresh_Sharma
      @Naresh_Sharma  3 роки тому

      Don't worry, just install the latest python and make sure to pay attention during the installation. You will see "Add python to my path" option. All you have to do is to check it while installing the python. And your python path will be set automatically

  • @thegameofslayer.
    @thegameofslayer. 2 роки тому

    Don't give any space in name of file
    Error solve easy

  • @ArtsyArena30
    @ArtsyArena30 24 дні тому

    Not working

  • @user-bz7wo2gu3g
    @user-bz7wo2gu3g 6 місяців тому

    Thankyou bro it's working

  • @ksushruth
    @ksushruth Рік тому

    Thanks bro this video helped me alot

  • @shayoxx8637
    @shayoxx8637 10 місяців тому

    double monstre brody

  • @nishantsingh6885
    @nishantsingh6885 2 роки тому

    Legend noticing the genshin game

  • @Manishaaa78543
    @Manishaaa78543 3 роки тому

    I am using Fortran in codeblock..how can I solve this

    • @Naresh_Sharma
      @Naresh_Sharma  3 роки тому +1

      Maybe manually changing the path can help. use this command in the terminal:
      cd full_path
      And then press enter. I haven't used code blocks, but I think this might help

  • @siddhi406
    @siddhi406 3 роки тому

    Thank you so much. It's actually work.

  • @abhinavpandey3569
    @abhinavpandey3569 Рік тому

    i was suffering from this problem from last 4 days
    thanks a lottttt

  • @s__Ranjan
    @s__Ranjan 2 роки тому

    Too many arguments show ho rha hai kya kre

    • @Naresh_Sharma
      @Naresh_Sharma  2 роки тому

      File save karte time, name me space mat do

  • @VikasYadav-jb3xo
    @VikasYadav-jb3xo Рік тому +1

    Thanks bro 🙏🙏👌👌👌👌

  • @gurucharan8263
    @gurucharan8263 2 роки тому +1

    thankyou bhai....

  • @Pavankumar_Mhaske
    @Pavankumar_Mhaske 2 роки тому +1

    thanks broo it fixed my problem thanks broo

  • @ranjitatech5239
    @ranjitatech5239 3 роки тому

    Can I check this same process in python program also

  • @Anything-cx4bs
    @Anything-cx4bs 2 роки тому +1

    Thanks Naresh bhai

  • @ArifKhan-vc6zg
    @ArifKhan-vc6zg Рік тому

    Appreciate you man 😘😘

  • @deepeshkumarrathore4350
    @deepeshkumarrathore4350 2 роки тому

    I am still getting this error even when I am opening the same folder in the terminal

  • @onkarsharma1629
    @onkarsharma1629 Рік тому

    You made my day sir ❤

  • @ankitaguleria9815
    @ankitaguleria9815 3 роки тому

    Your vedio really helpe bro 😭😭 thanks ❤️❤️

  • @murilo-tales
    @murilo-tales 2 роки тому

    you solved my problem. Thank you!

  • @zeedart2382
    @zeedart2382 Рік тому

    Holy Shit thanks a lot man really appreciate it❤💖❤‍🔥

  • @smartcat5989
    @smartcat5989 Рік тому

    thanks bro i do appriciate your work

  • @umangupadhyay4335
    @umangupadhyay4335 3 роки тому +1

    Thanks broo it help me a lot 😉😉🥰 love from earth ..

    • @Naresh_Sharma
      @Naresh_Sharma  3 роки тому

      Welcome bhai

    • @umangupadhyay4335
      @umangupadhyay4335 3 роки тому

      @vladimir putin is andrei panin jfk is jimmy carter are you freak I think you don't have any work to do .....