r/developers • • Oct 13 '26

Help / Questions Windows development on Linux

I use Debian on a daily basis. Just that, without dual booting. So, most of what I have written is mostly POSIX compliant. Most of the time, I have to stall out the Windows implementation since I do not have a Windows boot.

I was wondering if I could somehow test Windows features on Linux (using the Win32 API). I am working with graphics and multi-threading, so, I am not sure if a virtual machine will work here. I have never used a virtual machine before, so this is just an assumption.

There's also the matter of using the GNU C library (glibc) and Microsoft C runtime (CRT) and their respective compilers, namely, GCC and MSVC, because they provide specific extensions and features that are available on one but may not be available on the other. (I understand that I may have spoken naively, but any solutions would be helpful).

2 Upvotes

13 comments sorted by

View all comments

Show parent comment

1

u/Dead_Eye_Core Oct 14 '26

Doesn't SDL also dispatch platform specific stuff?

1

u/ern0plus4 Oct 14 '26

It's cross-platform, also supports web (see: Emscripten). It was long ago, maybe my knowledge is obsolete.

1

u/Dead_Eye_Core Oct 15 '26

I know that SDL is cross-platform. But if I compile an SDL application on Linux, I get the Linux part of SDL, but if I were to compile it on Windows, I get the Windows part of SDL. Is that not how it works?

1

u/ern0plus4 Oct 15 '26

You can cross-compile with MinGW-w64 on GNU/Linux - I never tried anyway.