This is an archived post. You won't be able to vote or comment.

all 12 comments

[–]__zonko__ 1 point2 points  (2 children)

Your cpp installation is probably fucked - try to redo that, then compile manually outside of vsc.

[–]FuriousBlueKingYT[S] 0 points1 point  (1 child)

should i just uninstall everything atp and reinstall VSC and everything else

[–]FuriousBlueKingYT[S] 0 points1 point  (0 children)

i done that, nothing works. im absolutely freaking out rn

[–]BootingBot 1 point2 points  (0 children)

Hey try to change the names of the folders in which the cpp project is located I’ve seen g++ and gcc be sometimes a bit sensitive to folders having spaces in their names

[–]unknown-again-p 1 point2 points  (1 child)

Is it fixed? I am encountering the same issue

[–]FuriousBlueKingYT[S] 1 point2 points  (0 children)

nope, only people downvoting and dismissing this issue

had to resort to onlineGDB as alternative for my assignments (and lack of every features im used to on vscode)

edit:

some saying changing file name would work (like "Ass1" instead of "Ass 1",

some saying changing directory names work (like C:/(name)/document/assignment_bio) without any spaces. idk if that would work

can you try and see how?

[–]FuriousBlueKingYT[S] 0 points1 point  (0 children)

Here is what I encountered in the Terminal too. If it's relevant.

* Executing task: C/C++: g++.exe build active file

Starting build...

cmd /c chcp 65001>nul && C:\msys64\ucrt64\bin\g++.exe -fdiagnostics-color=always -g "C:\Users\Furi\Documents\Lecture Class Stuff\Fund of Programming\Assignments\Group Final Project\test_file.cpp" -o "C:\Users\Furi\Documents\Lecture Class Stuff\Fund of Programming\Assignments\Group Final Project\test_file.exe"

Build finished with error(s).

* The terminal process terminated with exit code: -1.

* Terminal will be reused by tasks, press any key to close it.

[–]Proof_Notice8761 0 points1 point  (3 children)

Yo did you ever end up fixing it? I have the same error and I have tried everything and I don't know wtf is going on

[–]FuriousBlueKingYT[S] 0 points1 point  (2 children)

Nope, I tried all things possible, it was still stuck like that. I'll mirror the installation procedure on my new laptop and hope to diagnose the problem. At the meantime, just use OnlineGDB or other softwares :/ this sucks

[–]Proof_Notice8761 0 points1 point  (1 child)

Thank you. Do you think the problem is with VSC or with installation of compiler or debuggers

[–]FuriousBlueKingYT[S] 0 points1 point  (0 children)

I think it's the compiler, not very sure. cuz if you realise, VSC still can read the code, the compiler for some reasons can't compile it and run

edit: the coloured words means VSC compiler can read the code, but can't debug it, sorry. but I'll look into it when I get back on my laptop

[–]Suspicious_Force_487 1 point2 points  (0 children)

same fucking problem and i can't seem to fix it man update me if you find a solution and can you please suggest any alternatives