View previous topic :: View next topic |
Author |
Message |
nocide
Joined: 03 Nov 2009 Posts: 19
|
Posted: Sat May 15, 2010 11:52 am Post subject: SUBSYSTEM:WINDOWS:6.00 doesn't work on WindowsXP |
|
|
WindowsXP has the versionNr: NT5.1,
so application linked with SUBSYSTEM:WINDOWS:6.00 dos not work on WinXP.
But leave the version away should also work fine, sine the default for
Subsystem:Windows ist:
4.00 (x86) 5.01 (Itanium) 5.02 (x64)
greets
matthias |
|
Back to top |
|
|
sagitario
Joined: 03 Mar 2007 Posts: 292
|
Posted: Sun May 16, 2010 10:15 am Post subject: |
|
|
I'll remove the version number. I had just copied it from another report.
Thanks for the feedback.
Rainer |
|
Back to top |
|
|
dickl
Joined: 19 Oct 2006 Posts: 6
|
Posted: Sun May 16, 2010 8:30 pm Post subject: |
|
|
Windows,6.0 works on Vista and above. Use Windows,5.0 for XP |
|
Back to top |
|
|
torhu
Joined: 30 Mar 2006 Posts: 56
|
Posted: Sat Jun 19, 2010 9:09 am Post subject: |
|
|
Optlink defaults to 3.1, so I usually build my stuff with /subsystem:windows:4. Windows disables some GUI features for 3.1, but version 4 seems to be ok. |
|
Back to top |
|
|
sagitario
Joined: 03 Mar 2007 Posts: 292
|
Posted: Sat Jun 19, 2010 11:05 am Post subject: |
|
|
Ok, I'll set it to 4.0, which seems the default for the microsoft linker before VS2010.
I understand that a newer versioned executable won't run on an earlier OS. But does anybody have a link or reference, explaining what restrictions apply if the executable is run on a newer OS? |
|
Back to top |
|
|
nocide
Joined: 03 Nov 2009 Posts: 19
|
Posted: Sat Jun 19, 2010 4:41 pm Post subject: |
|
|
Walter's suggestion is:
SUBSYSTEM
SYNTAX: SUBSYSTEM [ NATIVE | WINDOWS [n.nn] | CONSOLE | POSIX ]
EXAMPLE: SUBSYSTEM WINDOWS 4.0
COMMENTS: Use 4.0 for n.nn when developing Windows XP applications.
http://www.digitalmars.com/ctg/ctgDefFiles.html |
|
Back to top |
|
|
torhu
Joined: 30 Mar 2006 Posts: 56
|
|
Back to top |
|
|
sagitario
Joined: 03 Mar 2007 Posts: 292
|
Posted: Sun Jun 20, 2010 1:51 am Post subject: |
|
|
Thanks for the links. From what I read version 4.0 seems good enough. You can always change it in the command line options, but maybe I should make it an explicte option in the linker tab. |
|
Back to top |
|
|
|