> Meanwhile I made two separate FLTK builds, one with -DWINVER=0x0400 and
> the other with -D_WIN32_WINNT=0x0400. Then took the examples from both
> builds folder and tried some of them on Windows 95. None of them worked.
> Same happens as with newer MinGWs. Program starts and hangs while
> consuming 100% CPU. No window is displayed.
Which version of gcc did you use in the end? And what type of CPU was used to do the build?
Not really sure this is relevant, but I ask because I have (on occasion) seen a similar effect where we are cross compiling from a modern machine but running the binary on older hardware.
The upshot is that the compiler is emitting instruction sequences that make sense on the host machine (which the compiler detects when it runs) but which are producing unexpected behaviours on (very old) the target hardware.
Now, we worked around this by judicious use of the -march, -mtune, -mcpu, (etc... I forget the details) flags to "advise" the compiler what target we wanted and that helped.
This may be hitting a similar issue?
Is your Win95 box a physical machine or a VM on something modern? If it is a physical machine, and you are using a more recent compiler version, it might be something like this.
FWIW, I still think it'd be worth a stab at getting a suitable ancient mingw tarball and trying that, rather than using something recent and depending on their installer.
They still seem to have the old tarballs up on SF:
https://sourceforge.net/projects/mingw/files/MinGW/Base/gcc/Version3/Current%20Release_%20gcc-3.4.5-20060117-3/
gcc-3.4.5 is possibly too modern for Win95 too (gcc-3.4.5 is about 2008 or so, IIRC?) but will be closer than gcc-5.something which would be pretty recent.
I'm pretty sure I was using gcc-3.4.something to build code for Win98 and NT4, back in the day, which have broadly the same API level as Win95.
> I don't know how the hell
> the creator of Dillo for Win32 managed to do it, nor have I any idea how
> to get in touch with him.
Can't offer any suggestions for that...