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

preview_player
Показать описание
This is a common error in Visual Studio Code, and you might have encountered this and didn't find a workaround.

Well, this short video is what you are looking for!
Рекомендации по теме
Комментарии
Автор

If this doesn't solve, then you can use WinLibs as an alternative to msys2 to install the appropriate compilers. And don't forget to setup the path in Environment variables on your system. Then your VS Code will automatically detect your compilers, whether it be GCC or Clang.

learnwithajit
Автор

Thank you so much! I have been struggling with this for so long and couldn't find an answer. I appreciate you!

thejadaramirez
Автор

Just letting you know, I did this for my C#. fixed it too. It now exits with code 0 (0x0). which I am given to understand it should. Thanks.

Mark
Автор

I have been searching for 1.1 weeks for my problem to be just this. thank you sir

saadmosar
Автор

bro I have been trying to solve this problem for 2 hours and your video fixed it thank you

SakacOyuncu
Автор

Just talked with my ChatGPT and yes it give me a great solution but this guy give me easier way to fix it

fikrisalim
Автор

Thank you I’ve been trying to figure this bs out for a minute now 💆🏻‍♂️

lilstarkgaming
Автор

Sir but how can i delete my vscode folder because there is many files existing in that .

AnjaliGupta-
Автор

Thank you so much, I apperently have a compiler on my system that gave me problems and changing compiler solved the issue! Many thanks you're a life saver

Ironpecker
Автор

Sir this compiler can't download in my pc, what can i do 😭

mohitchamyal
Автор

Thank you so much bhaiya .I have been searching for its solution from a week .Finally I can code now.

NidhiKumari-yrhz
Автор

Thanku it worked...
I found this video after apply several method... And none of them work.. But it did 🥰✨...

badalgugnani
Автор

Sir this aap can't run in my pc, 😔 what can i fo ?

mohitchamyal
Автор

Finally after weeks it's solved for me

xuthueg
Автор

folder not deleted after deleted still showing
not helpful

maninderramgharia
Автор

1 solution that worked for me was deleting the .vscode folder from my project folder and then running the code afterwards. Hope this helps!

kool-aid
Автор

it does not work for me what can i do?

savvaspi
Автор

Thanks bro hope that msys2 is safe cause my defender is giving warning

gagan_.hegde
Автор

thank you man i finally founded the solution from you after a lot of timmmme thanks

MostafaAhmedOsman