this post was submitted on 02 Jan 2026
17 points (84.0% liked)
Programming
26138 readers
251 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
You don't need open-watcom to compile 9x applications from other OSes... both gcc and clang, as well as wine, have multiple options for cross-compilation, no VM or docker needed.
I routinely use all 3 methods for compiling my own 95/98 applications from Linux.
For gcc I use the mingw toolchain, which is available as the
mingw-w64package on Debian-based systems, or https://mxe.cc/.For clang I use
clang-clwith the VC6 SDK. clang-cl pretends to be the Microsoftcl.execompiler and actually works quite well if you know the right options to give it.And finally, using wine you can either run the original MSVC toolchain compilers, or versions of gcc that were compiled to run on Windows directly; there are both old and new gcc versions that can produce Win9x binaries if you know where to look.
Some resources that have helped me over the years as well:
https://glizda.wordpress.com/2021/05/19/compiling-programs-for-windows-95-and-pentium-in-2021/
https://web.archive.org/web/20230905023821/http://www.nosubstance.me/post/coding-windows-cpp-on-linux-2/
https://github.com/fsb4000/gcc-for-Windows98