View previous topic :: View next topic |
Author |
Message |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7933 Location: Salford, UK
|
Posted: Fri Nov 10, 2017 9:03 pm Post subject: |
|
|
I will have to check this but it is quite possible that the 32 bit object code contains a /windows flag whilst the 64 bit object code does not.
/windows is basically a linker option (the linker puts a marker in the header of the exdcutable).
/windows will work with /link and /lgo on the FTN95 command line because the flag is passed on to the spawned linker command line. Otherwise you must provide /windows as a linker option (for 64 bits). |
|
Back to top |
|
|
IanLambley
Joined: 17 Dec 2006 Posts: 490 Location: Sunderland
|
Posted: Sat Nov 11, 2017 5:01 pm Post subject: |
|
|
Paul,
in 64 bit mode, I have tried putting the /windows switch into the compiler "Miscellaneous, Extra Compiler switches" section.
I have put variously "/windows" and "windows" into the "Linker Options, Extra Linker Options". It does not show up in the "Linker switches" section and it is not shown in the "link.inf" file.
However if I compile it and then manually load the object, specify "windows" and "file" then it works without the console box.
If I do the same in WIN32, then it works correctly. The "link.inf" does not include "windows". so it must be getting this passed from the compiler to the object file as you suggested.
Regards
Ian |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7933 Location: Salford, UK
|
Posted: Sat Nov 11, 2017 6:58 pm Post subject: |
|
|
Ian
The Plato released with version 8.20 of FTN95 has "Windows application" under "Linker Options" in the Project Properties. Just select this option.
I don't recall if this was in earlier releases. |
|
Back to top |
|
|
IanLambley
Joined: 17 Dec 2006 Posts: 490 Location: Sunderland
|
Posted: Sat Nov 11, 2017 7:06 pm Post subject: |
|
|
I'm not using Plato. I'm using Visual Studio 2015.
Regards
Ian |
|
Back to top |
|
|
|