Visual Studio 2019 and the end of Windows XP support

Here, developers communicate stuff that does not go onto the main News section or the front page of the site.
[Dev Blog] [Development Builds] [Git Change Log] [GZDoom Github Repo]

Moderator: GZDoom Developers

User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Visual Studio 2019 and the end of Windows XP support

Post by Graf Zahl »

I recently installed Visual Studio 2019 and found out that it only supports compiling for Windows XP via legacy toolsets from older compilers. Yes, that is correct: Microsoft has finally dropped XP support from their current line of compiler tools.

This has an important implication: Going forward and using newer C++ language features in the source means that none of these will be backported to work with the XP compatible toolset.

Checking the database from the 3.5 survey. The survey contains 31480 distinct users not requiring the vintage build.
Of these 31480 users there were 41 users on Windows XP, meaning we are left with roughly 0.13% of our users on Windows XP.

Under these circumstances there is little point to continue XP support, the user base is simply too small to justify shutting ourselves off from future C++ versions and having to install a large package of legacy build tools and SDKs, so with the next release Windows XP support will be dropped from the official releases and no attempts will be made anymore to keep the code compatible with such older toolsets.
User avatar
Rachael
Posts: 13532
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Visual Studio 2019 and the end of Windows XP support

Post by Rachael »

RIP Windows XP. Its support ended at least 5 years ago - it's time to move the fuck on.

I think we all can agree that Microsoft really dropped the ball with their more recent Windows offerings, putting in controversial features that no one asked for and bloating its size significantly. However, that is no reason to stay with such an outdated operating system, and we all must look to the future in this digital age. There is no excuse sticking with this system, outside of testing and using it to run much much older applications from inside a virtual machine.

That being said, I know there's going to be an extremely vocal minority upset with this decision. I already have a response to those people: Too bad, so sad, life moves on without you.

Linux is a viable system that will stay updated and will run perfectly on your piece of shit hardware. I would strongly suggest switching to it if you can't run Windows 7 or later. Lubuntu is a very lightweight distro that is extremely easy to use and should be very intuitive for XP users - your computer will be stronger and more secure in the long run if you choose to use this as your daily driver, and GZDoom will continue functioning on it in the future without problems as long as you keep it up to date.

Lubuntu Download
Guide to switching
User avatar
Enjay
 
 
Posts: 26517
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Visual Studio 2019 and the end of Windows XP support

Post by Enjay »

I get why there was (is?) such a loyalty to XP. IMO it was the first incarnation of Win95-style presentation (as opposed to the quite different 3.1 layout) that was a really nice, competent and stable OS to use. I still have a really old rig kicking around with XP on it and when I fire it up, I still find XP very easy to use, more approachable than Win10 (or the previous XP successors). XP lasted a very long time and so much was set up for it.

But, yeah, it is now past it. The computing world has moved on and if continued support for XP (especially for so few people - who apparently have no problem sticking with old software, so they can stick with an old version of GZDoom if they really want :P ) causes the devs more hassle than it's worth, it's time to say goodbye to XP.


Image
"Let the past die. Kill it if you have to."
BFeely
Posts: 44
Joined: Thu Mar 11, 2004 3:58 pm
Graphics Processor: nVidia with Vulkan support
Contact:

Re: Visual Studio 2019 and the end of Windows XP support

Post by BFeely »

By any chance have you tried this as a Post-Build Step?

Code: Select all

editbin.exe "$(TargetPath)" /SUBSYSTEM:WINDOWS,5.01 /OSVERSION:5.1
The redistributable still installs on XP SP3.
User avatar
Rachael
Posts: 13532
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Visual Studio 2019 and the end of Windows XP support

Post by Rachael »

That will not work. The file will execute, sure, but on XP systems the required libraries are not available.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Visual Studio 2019 and the end of Windows XP support

Post by Graf Zahl »

Even if it worked, it''s simply not worth the hassle. The number of XP users is already extremely low and rapidly shrinking. It makes no sense compromising the integrity of the executable for a handful of people who have missed the sign of the times.

AFAIK this won't even work right because the more recent CRT depends on system functions that are either not present in XP or require feature support not present in XP.
From what I read several years ago a VS developer once said that the main reason why XP was abandoned was that a few CRT features cannot be implemented robustly due to missing system features.
User avatar
Rachael
Posts: 13532
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: Visual Studio 2019 and the end of Windows XP support

Post by Rachael »

I've said it before and I'll say it again: It is a disservice to XP users to continue supporting it.

XP is prone to security flaws and malware infections far more than any of its successors, and that is a simple fact that if its users cannot cope with and comprehend with as well as the possible implications of that and the consequences - it's out of our reach. But to continue supporting this dated OS gives such users just one more reason not to migrate to something that at least has a minor concern about its own security as well as that of its end user.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Visual Studio 2019 and the end of Windows XP support

Post by Graf Zahl »

Since XP is no longer supported I made a few minor changes to the project:

- Visual Studio now uses /permissive- mode, which disables the vast majority of Microsoft extensions that in the past have caused some trouble by letting code slip through that won't compile on GCC/Clang.
- since Visual Studio 2015 does not support this flag I removed it from the Appveyor configuration and hereby declare that compiler version unsupported as of now.

Since the XP compatible toolset is not compatible with /permissive- - which was the sole reason that this setting wasn't added - it will mean that the CMake project cannot be used to build an XP compatible binary anymore without making some edits.
User avatar
Major Cooke
Posts: 8170
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: Visual Studio 2019 and the end of Windows XP support

Post by Major Cooke »

Does 2019 already work with GZDoom source? Or is there more setting up required before we can start using it?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Visual Studio 2019 and the end of Windows XP support

Post by Graf Zahl »

I already use 2019. It works just as well as 2017.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: Visual Studio 2019 and the end of Windows XP support

Post by _mental_ »

VS2015 still builds GZDoom just fine. Output log is polluted with cl : Command line warning D9002: ignoring unknown option '/permissive-' messages, but that's all.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Visual Studio 2019 and the end of Windows XP support

Post by Graf Zahl »

It may still compile but that doesn't change the unsupported-ness.
As soon as post C++11 features get used, it will be over anyway.
mysoft
Posts: 2
Joined: Sun Jan 19, 2020 7:47 am
Graphics Processor: nVidia (Modern GZDoom)

Re: Visual Studio 2019 and the end of Windows XP support

Post by mysoft »

heh and VS is required to compile this on windows? why not mingw? then it would not be a problem for XP
despite requiring useless switches just show how terrible devs are becoming nowadays...
User avatar
phantombeta
Posts: 2084
Joined: Thu May 02, 2013 1:27 am
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: Brazil

Re: Visual Studio 2019 and the end of Windows XP support

Post by phantombeta »

mysoft wrote:heh and VS is required to compile this on windows? why not mingw? then it would not be a problem for XP
despite requiring useless switches just show how terrible devs are becoming nowadays...
XP is a dead OS and MinGW constantly stops working for GZDoom. No one here wants to put in that amount of effort to try to get GZDoom to work on a long dead, unsupported OS.
mysoft
Posts: 2
Joined: Sun Jan 19, 2020 7:47 am
Graphics Processor: nVidia (Modern GZDoom)

Re: Visual Studio 2019 and the end of Windows XP support

Post by mysoft »

XP is not dead... unless i'm a zoombie... either way thats not a excuse to not have your program working with MingW... fgs...
Post Reply

Return to “Developer Blog”