Stefan,

Coincidentally, I happen to have been working on that.  I noticed that mingw is defaulting to Windows version 5 on Ubuntu for my little project.    I'll let you know when I've written the app and tested it. 

Regards,
...John Alway 

On Friday, November 15, 2019, 04:13:10 PM CST, Stefan Dösinger <stefandoesinger@gmail.com> wrote:


Am 15.11.19 um 03:03 schrieb Thales:

>
> Just for the record, in the "Optional Header," under the category
> "MajorSubsystemVersion," the mingw created PE binary has NT version 4
> (released 1996), whereas the Visual Studio 2015 PE binary has it set to
> NT version 6 (released 2008).
>
> So, it's exactly as you said!

Does this cause the behavior difference you see? If you edit the header
manually, does the mingw build get the msvc behavior and vice versa?