View previous topic :: View next topic |
Author |
Message |
mecej4
Joined: 31 Oct 2006 Posts: 1886
|
Posted: Fri Sep 08, 2017 5:46 pm Post subject: Unexpected switch /SILENT |
|
|
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 |
|
|
JohnCampbell
Joined: 16 Feb 2006 Posts: 2554 Location: Sydney
|
Posted: Sat Sep 09, 2017 2:44 am Post subject: |
|
|
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 |
|
|
mecej4
Joined: 31 Oct 2006 Posts: 1886
|
Posted: Sat Sep 09, 2017 3:32 am Post subject: |
|
|
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 |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7924 Location: Salford, UK
|
Posted: Sat Sep 09, 2017 8:34 am Post subject: |
|
|
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 |
|
|
Robert
Joined: 29 Nov 2006 Posts: 445 Location: Manchester
|
Posted: Sun Sep 10, 2017 11:15 am Post subject: |
|
|
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 |
|
|
|