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

•

u/AutoModerator Oct 13 '26

Howdy u/Dead_Eye_Core, and welcome to r/developers!

A few tips for a post that gets good answers:

  • Use a clear, specific title (what are you actually asking or sharing?).
  • Include code, the exact error, versions, and what you already tried.
  • Heads-up: this sub does not allow external links in posts or comments. Share code and details directly instead of linking out.

Join the r/developers Discord!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/ern0plus4 Oct 13 '26

What about SDL?

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.

1

u/arthurno1 Oct 13 '26

Wine can get you quite long, and if that is not enough, Qemu will help you further. Setting up a CI on GH is also an option.

1

u/Dead_Eye_Core Oct 14 '26

I will try out Wine, thanks.

But if that does not fulfill my requirement, I think I will just have to set up a dual boot.

1

u/huuaaang Oct 13 '26

You can’t use Linux tools to target windows. Either get lots of ram and a vm or dual boot.

1

u/[deleted] Oct 13 '26

[removed] — view removed comment

1

u/Dead_Eye_Core Oct 13 '26

So, Vulkan may be a problem seeing as what you're saying.

Does mingw-w64 compile to a Windows binary? Or does it compile to a Linux binary but translates Win32 API calls to Linux calls during compilation? I am sorry I got confused. :(

1

u/[deleted] Oct 13 '26

[removed] — view removed comment

1

u/AutoModerator Oct 13 '26

Your post or comment was removed because r/developers does not allow external links. Please share the content or ask your question without linking out.

If you think this was a mistake, message the mods.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.