[FIXED] Error: "The preLaunchTask 'C/C++: g++.exe build active file' terminated with exit code 1"

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
okay I am inside vs code and there is a common error that is found while running any CPP file in vs code now what happens it shows you the pre-launch task error if you encounter that error then you need to delete this VSS code folder in the Explorer tab so you need to delete this folder just delete it and open the sample hello world file or whatever CPP file you have have then go here and run C or C++ file when you do that it will show you the available compilers in your operating system now I have installed the MW 64 compiler uh which comes with uh msis 64 so if you head over to the msis website you will find the appropriate installation steps so I have installed that comp compiler now you need to click on this particular button just click on this and the moment you click on this the execution will start automatically it might show some confirmations right here don't uh click on those confirmations just wait and here you can see the output is printed okay now this is how you run a CPP file inside Visual Studio code without any error like pre-launch task or something like that so whenever you encounter that error just remember to delete this vs code folder so that all the settings are reset to the default okay thank you
Info
Channel: Ajit Kumar Sahoo
Views: 33,135
Rating: undefined out of 5
Keywords: programming with ajit, coding with ajit, ajit kumar sahoo, youtube, google, india, coding in india, prelaunch task error, how to fix prelaunch task error in vs code, Error: The preLaunchTask 'C/C++: g++.exe build active file' terminated with exit code 1
Id: H2lDskr1z-0
Channel Id: undefined
Length: 1min 45sec (105 seconds)
Published: Wed Dec 13 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.