forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Windows application versus console application
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit
View previous topic :: View next topic  
Author Message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 5441
Location: Salford, UK

PostPosted: Fri Nov 10, 2017 9:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
IanLambley



Joined: 17 Dec 2006
Posts: 469
Location: Sunderland

PostPosted: Sat Nov 11, 2017 5:01 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 5441
Location: Salford, UK

PostPosted: Sat Nov 11, 2017 6:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
IanLambley



Joined: 17 Dec 2006
Posts: 469
Location: Sunderland

PostPosted: Sat Nov 11, 2017 7:06 pm    Post subject: Reply with quote

I'm not using Plato. I'm using Visual Studio 2015.

Regards
Ian
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit All times are GMT + 1 Hour
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group