Not sure if this counts, since this is more about running code than writing it.
I have followed the instructions on these sites. I have also made sure to change "Path" in the environmental variables. https://code.visualstudio.com/docs/cpp/config-mingw https://www.mingw-w64.org/
The installation worked, but no matter what I try (running in command prompt, running in Visual Studio) I get something like: "'g++' is not recognized as an internal or external command, operable program or batch file." when I try to execute some code. Why is this?
EDIT 1: Visual Studio Code*, not Visual Studio.
EDIT 2: Seems to be working now! I'm the only user on my computer, but I had to change my system variables - not just the user variables - for it to work.
c - how to update install GCC 11.2 on windows - Stack Overflow
c++ - C++11 compiler for windows - Stack Overflow
Windows 11 24H2 upgrade for GCC
Replacing mingw gcc with newer gcc version (Windows 11)
Videos
Nearly all C++11 features are implemented in the GCC 4.6.x . A good place to get latest GCC builds (MinGW) is the TDM website - http://tdm-gcc.tdragon.net/download . It should be easy to replace your current GCC with TDM GCC by overwriting files...
A special version of MinGW:
MinGW-Builds gives you everything gcc offers (currently 4.7.2)
That is: Including support for std::thread, std::async, std::future and friends.
As far as I know that's by far the most complete C++11 you can get on Windows.
You just get the MinGW-build binaries here. Unlike other gcc-based installations it supports posix threads, which are currently key to getting the gcc support for C++11 threads and friends working on Windows.
Extract the directory mingw to any location and add the following two paths to your PATH environment variable: (well, change F:\coding ...)
CopyF:\coding\MinGW\bin
F:\coding\MinGW\msys\1.0\bin
Add both, separated by semi colon. You will need to log out or reboot. To verify that you got it right, you can open a command prompt, and write
Copyg++ --version
You should get a response like this, mentioning MinGW-builds:
Copyg++ (Built by MinGW-builds project) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc. ...
I wrote a more complete instruction for getting this going with Eclipse, here: http://scrupulousabstractions.tumblr.com/post/36441490955/eclipse-mingw-builds
GCC doesnt allow feature updates. Believe me I have tried. So...
Does anyone know how I can upgrade Windows 11 to 24H2 with a Win32 app? I am using an ISO on a local machine and nothing even works to automate it.
setup.exe /auto upgrade /dynamicupdate disable /showoobe none /copylogs %SystemDrive%\UpgradeLogs
I have tried just about every combination, and it always displays a GUI. These are newer machines so it isnt anything to do with compat issues. I really dont want to use SCCM for this as we are trying to move all machines to intune. Touching each workstation to go to 24H2 is super annoying.
I also tried to just clean install from the Win32 app but that fails also. We have everything in OneDrive for our employees so it aint the end of the world but still annoying for custom apps. We have a few left that Intune hates.
I currently have mingw installed and the newest available version of gcc (specifically g++) is 6.3.0. Is there a way I can get a newer version of gcc without having to manually replace files in the mingw directory or installing msys2 (or similar things like that)
Installing the newest version of g++ was so much easier on my linux laptop... And installing sfml was even easier. With the version I have on my windows computer, I can't even find a pre-compiled sfml version that works because "the compiler versions must match 100%"
edit: ideally, I want it to work without having to install a new ide that somehow has the compiler integrated in its source code