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 

Unexpected switch /SILENT

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
mecej4



Joined: 31 Oct 2006
Posts: 1885

PostPosted: Fri Sep 08, 2017 5:46 pm    Post subject: Unexpected switch /SILENT Reply with quote

When a Fortran program is built and run with the command (replace "<progname.f>" by the name of the source file, without the '<' and '>')

ftn95 <progname.f> /64 /debug /lgo

these messages are output:

Code:
...
[SLINK64 v1.8, Copyright (c) Silverfrost Ltd. 2015-2017]
Loading s:\lang\ftn95\lgotemp@.obj
Creating executable file s:\lang\ftn95\lgotemp@.exe
Program entered

and an error pop-up appears with the message

Unexpected switch /SILENT

and an OK button.

The same program, compiled, linked and run without using /LGO, runs fine.


Last edited by mecej4 on Sat Sep 09, 2017 1:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
JohnCampbell



Joined: 16 Feb 2006
Posts: 2554
Location: Sydney

PostPosted: Sat Sep 09, 2017 2:44 am    Post subject: Reply with quote

I could not reproduce your example with V8.10 in cmd.exe with Win 7 O/S

ftn95 ran_test.f /64 /debug /lgo

Do you have a ftn95.cfg file that is conflicting ?

"ftn95 <ran_test.f> /64 /debug /lgo" gave "Access is denied."

My <ftn95.cfg> is:
/ERROR_NUMBERS
/IMPLICIT_NONE
/INTL
/LOGL

Or perhaps you are selecting compiler OPTIONS directive in your code?
OPTIONS(SILENT)

John
Back to top
View user's profile Send private message
mecej4



Joined: 31 Oct 2006
Posts: 1885

PostPosted: Sat Sep 09, 2017 3:32 am    Post subject: Reply with quote

John, you should remove the '<' and '>' from command line, since those are understood by CMD to be redirections of STDIN and STDOUT.

My FTN95.CFG has only one line: /nocolour. I am running on Windows 10, using the 8.10 compiler, SDBG64 8.10.9 and the NEWDLLS11.zip DLLs.

I have no OPTIONS directives in the source file.


Last edited by mecej4 on Sat Sep 09, 2017 1:39 pm; edited 2 times in total
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Sat Sep 09, 2017 8:34 am    Post subject: Reply with quote

With this combination of options, FTN95 spawns the debugger with /silent on the command line. /silent has not yet been implemented (at least not for the SDBG64 in use). This may have already been fixed but we will aim to have it fixed one way or the other for the next release.
Back to top
View user's profile Send private message AIM Address
Robert



Joined: 29 Nov 2006
Posts: 444
Location: Manchester

PostPosted: Sun Sep 10, 2017 11:15 am    Post subject: Reply with quote

There is a new sdbg64 (8.10.10) that supports the /silent switch. It did support it previously but a typo when adding script support managed to turn off the switch (an 'if' was added instead of an 'else if').
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
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