Thanks very much for those suggestions.
It turns out that I can compile on the command line, with
c:\wapps\salford\ftn95 aho1.f /import_lib c\:wapps\salford\naglib\dll\nagsx.dll /import_lib c:\wapps\salford\naglib\dll\nagd01.dll
(all on one line). However, this doesn't work in a batch file, which is what I was previously trying to do. The error message is
'Unable to import library c:\wapps\salford\naglib\dll\nagsx.dll.'
Moreover, on the command line, simply invoking ftn95, without the full path does not work, even though c:\wapps\salford is in the path.
Be that as it may, I now face a more serious problem, namely that slink does not work, even on the command line.
The command
c:\wapps\salford\slink aho1.obj c\:wapps\salford\naglib\dll\nags x.dll c:\wapps\salford\naglib\dll\nagd01.dll
produces an access violation, with the message:
Runtime error from program:c:\wapps\salford\slink.exe
Access Violation
The instruction at address 004182dd attempted to read from location 0373f6fc
0041804a loadDll(<ptr>char,int) [+0293]
0040274d loadObject(<ptr>char) [+0278]
00424084 loadCatenatedObject(<ptr>char) [+0282]
00402a55 loadNamedObjectFile(<ptr>char) [+012a]
0041f068 findDLL(<ptr>char) [+01a6]
0041f226 loadStandardDLLs(void) [+018e]
004071f1 parcelUpExe(void) [+07b3]
0040b59d parseCommandLine(<ptr><ptr>char) [+030c]
eax=03742290 ebx=03741cf0 ecx=037411c4
edx=00000000 esi=000003e8 edi=0373f6f8
ebp=0370ed30 esp=0370ec7c IOPL=0
ds=0023 es=0023 fs=003b
gs=0000 cs=001b ss=0023
flgs=00010203 [CA OP NZ SN DN NV]
004182dd mov esi,[edi+0x4]
004182e0 mov [ebp-0x7c],esi
004182e3 push eax
What on earth is going on??