#Nothing is displaying lmao
46 messages ยท Page 1 of 1 (latest)
When your question is answered use !solved or the button below 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.
@simple panther
Your message appears to contain screenshots but no code. Please send code and error messages in text instead of screenshots if applicable!
Try running it from a standalone terminal
You compiled after you wrote the code right?
Just to double check - is this the right main.cpp in this directory? Perhaps you made an empty main.cpp that doesn't print anything here.
Obligatory: Just use Visual Studio 
and also , everytime you make any change in your file , you have to recompile it and run the new application
maybe you built the .exe initially , wrote some code but didnt recompile it and you are trying to run the old exe
Please run gcm g++ and echo $env:PATH and show the outputs
okk
Most likely you need to edit the PATH and move the compiler installation directory to the very beginning
yeah
why would this make a difference? it seems that it compiles, just issues with it running
hm..
ok lemme try that ig
show what you typed in the terminal behind this error screen
ok
i typed g++ main.cpp -o fkt.exe
fkt.exe
dats all
oh ok
Those cryptic errors are usually caused by having >1 copy of the standard library in path, and the app loading the wrong one by default (wrong = not the one that comes with the compiler)
Ok, so you need to move C:\MinGW\bin to be first in PATH. After you do that, restart VSC, run echo $env:PATH, and confirm that it's indeed first
ok
@sudden shadow when are you gonna write an installer or universal script that one shots this set up for us?
You don't need to reinstall anything. Show the output from echo $env:PATH
I think this is bad for learning, I want them to know what they're doing 
I don't think it's particularly useful for beginners, tbh
Unless you're trying to gatekeep (then based)
The explanation why PATH needs to be in this order isn't very useful, but knowing how to manipulate it is. Or at least I think so 
Useful, but i think it's outside of the scope for trying to learn the language basics
I think a lot of what you have to do to set up MinGW on Windows is useful knowledge, just not what you want beginners to be focusing on trying to learn C++
I could be wrong, but I assume that if someone is unable to follow those relatively simple instructions, and you give them an easier IDE to install, they'll get stuck on something else down the line anyway
Perhaps this does count as gatekeeping? ๐
guys you could have told him to run
cat main.cpp
in the terminal to check if it matches the GUI text editor window, smh