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.
28 messages · Page 1 of 1 (latest)
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.
@stable quartz
Your message appears to contain screenshots but no code. Please send code and error messages in text instead of screenshots if applicable!
first thing to check would be if g++'s directory is in your PATH
if you run this in a terminal, do you get a valid version number:
g++ --version
I get g++ (Rev2, Built by MSYS2 project) 14.2.0
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
is this okay?
if you're using msys2 you just have to make sure you're working with the binaries in that environment
it comes with a special terminal you can use that sets up the environment variables for you, which is one option
i think there's also a script you can call to set things up for you as well
Do I have to type smh in it if so what is it?
the easiest thing to try would be to specify the full path to g++ in your vscode config
how can I do that?
looks like there's a guide here: https://code.visualstudio.com/docs/cpp/config-mingw
and someone from this server wrote a nice guide for this type of thing as well: https://github.com/HolyBlackCat/cpp-tutorials/tree/master
Thanks il try it
instead of having it say g++ just specify something like C:\full\path\to\g++.exe for this ^
in the <> or the compiler path
compiler path
Tried it and it still give me the error
it might be worth trying out visual studio if you don't want to deal with configuring something like vscode for c++
it can get pretty involved if you want to set it up correctly, but visual studio will come pre-configured
Yeah the problem is that I am using visual studio code
Il try
it's a much bigger install than vscode, but will come with everything you need right out of the box
@stable quartz Has your question been resolved? If so, type !solved :)
!solved
Thank you and let us know if you have any more questions!
This thread is now set to auto-hide after an hour of inactivity