Linker Warning with subsystem

While I try building with the linker option -subsystem:windows,5.1 (just like Casey did)

I get the warning:

1
LINK : warning LNK4010: invalid subsystem version number 5.01; default subsystem version assumed


To get rid of the warning, I simply had to do 5.10 instead of 5.1. Anyone know what's up with that? The game still built and ran fine, but I'm curious what caused this discrepancy.

EDIT: I am aware that 5.1 may not be the same as 5.10, but I'm not finding much info online about the matter.

Edited by Troncoso on
This is covered in the stream on day 17. subsystem:5.1 is only allowed on the 32-bit build, so when you're compiling in 64-bit, you want to remove it. I show how to do this in the stream.

- Casey
For more information about Windows XP see here: http://blogs.msdn.com/b/vcblog/ar...with-c-in-visual-studio-2012.aspx

Applications targeting the x86 version of Windows XP must specify subsystem version 5.01, and applications targeting x64 must specify version 5.02.

For x86 console applications:
set LINK=/SUBSYSTEM:CONSOLE,5.01 %LINK%

For x64 console applications:
set LINK=/SUBSYSTEM:CONSOLE,5.02 %LINK%

Just replace CONSOLE with WINDOWS, because we are not building console app.

Edited by Mārtiņš Možeiko on