Silverfrost Forums

Welcome to our forums

Unexpected switch /SILENT

8 Sep 2017 4:46 (Edited: 9 Sep 2017 12:41) #20166

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:

...
[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.

9 Sep 2017 1:44 #20169

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

9 Sep 2017 2:32 (Edited: 9 Sep 2017 12:39) #20170

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.

9 Sep 2017 7:34 #20173

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.

10 Sep 2017 10:15 #20178

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').

Please login to reply.