It's pretty much just GCC 11.1.0, but you can run it in Windows 98. The executables it creates also runs in Windows 98.
This allows you to compile programs using a newer C/C++ standard down to Windows 98!
Here's the link if anyone is interested: https://github.com/fsb4000/gcc-for-Windows98
It's a Windows binary. Just use it like any other version of GCC, and should get a working executable.
It works weirdly under Wine. It works like normal, but its laggy, and build tools like ninja/make will constantly recompile every file.
If you're feeling experimental (or you're just sick of the slowness), then you can try the attached files.
Its the basic GCC pack (binutils + mingw-w64 + gcc), but compiled as a Linux binary. Its faster, and works better than the Wine version, but it's very janky. You need to pass the library and include paths for some reason, so I created helper shell scripts for that. I can't seem to get the full GCC suite to compile, and I'm losing my patience compiling GCC. Cross-compiling GCC sucks
Other than that, it should still output a valid, Windows 98 supported, executable file
(Note, the decompressed directory is around 1.2GB large, my guess is because of the debug symbols, attempting to strip the binaries makes the test hello world code do nothing)
The archive sadly had to be split (I tried my best compressing it). Just run the following code to "unsplit" them:
Code: Select all
cat 1-GCCW98.tar.gz 2-GCCW98.tar.gz 3-GCCW98.tar.gz 4-GCCW98.tar.gz 5-GCCW98.tar.gz 6-GCCW98.tar.gz 7-GCCW98.tar.gz 8-GCCW98.tar.gz 9-GCCW98.tar.gz 10-GCCW98.tar.gz > GCCW98.tar.gz