Can someone help me? I just followed the steps to install c++, but I still can't run it.
Idk how to launch "launch.json" as well, anything i put inside the bar it doesn't do anything.
46 messages ยท Page 1 of 1 (latest)
Can someone help me? I just followed the steps to install c++, but I still can't run it.
Idk how to launch "launch.json" as well, anything i put inside the bar it doesn't do anything.
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
@tepid topaz
Your message appears to contain screenshots but no code. Please send code and error messages in text instead of screenshots if applicable!
In the file tasks.json, replace gcc by g++ in the command.
Hm this image:
https://media.discordapp.net/attachments/1188517420235771936/1188517421473075332/image.png
suggested you were already using a tasks.json
How do you compile precisely?
The tasks.json would be located in the folder .vscode btw
Well yes, what did you do precisely to obtain this?
is this folder created when i create this .cpp file or is this folder from vscode itself
Follow these steps: https://code.visualstudio.com/docs/cpp/config-mingw
Should be in the same directory as the directory in which you opened vsc
I create a new text file from file, select a language, i choose c++, i control save it in a file, i put in the codes, i run it by pressing the play button at the top right
yeah thats what i did
oh wait
i havent follow its hello world part
hold up
@hidden nebula
@hidden nebulawow
it worked
thank you
so much
but can you explain why this happened
did i somehow messes up somewhere that cause this to happen?
Well gcc specifically compiles C and doesn't link C++ stuff.
i was following a youtube tutorial, no one seems to have this problem in the comments though
You can "first" then ๐
:<
@hidden nebula i think i figure out why
was blindly following the tutorial, in the tutorial g++ is the first one
but for me gcc is the first one
so i clicked on gcc
thank you so much for your help though
np ๐
would have been stuck here dont know what to do for hours
@tepid topaz Has your question been resolved? If so, type !solved :)
!solved