View previous topic :: View next topic |
Author |
Message |
alangr
Joined: 24 Oct 2016 Posts: 47 Location: Oxford,UK and Athens, Greece
|
Posted: Sat Jan 06, 2024 12:07 pm Post subject: source file extension query |
|
|
I have been using ‘.for’ for my FORTRAN source files (i.e. not ‘.f’). After a recent system crash, every time I try to compile a ‘.for’ file I now get the message that 'the .f file’ cannot be found. Hardly surprising! So I am supposing that the appropriate fix to allow compiling ‘.for’ files has been wiped after the crash.
I recall getting round this problem in the past but I cannot recall how I did so. The ftn95 documentation must surely mention how to use ‘.for’ files but I cannot find such information there or in the forum.
There is surely a simple solution....
Thanks _________________ Alan |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
mecej4
Joined: 31 Oct 2006 Posts: 1886
|
Posted: Sat Jan 06, 2024 3:00 pm Post subject: |
|
|
Alangr, you did not state how you use the FTN95 tools to compile, but I suspect that you do your compilation, linking and debugging using the Plato IDE/Editor.
If so, open Tools: Settings: Text Editor: Language Settings: Fixed Format Fortran.
Do you see ".for" as one of the items in the "File Filter" box? If not, add ";.for" at the end of what is already present.
If this procedure does not solve the problem, describe in detail the circumstances surrounding your attempts to compile, link and run. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
alangr
Joined: 24 Oct 2016 Posts: 47 Location: Oxford,UK and Athens, Greece
|
Posted: Sat Jan 06, 2024 3:56 pm Post subject: |
|
|
Thanks fr your reply.
I am not using Plato right now but simply a DOS command line such as
FTN95 %1 /CHECK /UNDEF /INTL /LIST /DEBUG
Where %1 is something like 'routine.for'.
I then use SLINK and, during development, SDBG to run.
Is there a file filter available somewhere in here I wonder? _________________ Alan |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7926 Location: Salford, UK
|
Posted: Sat Jan 06, 2024 4:25 pm Post subject: |
|
|
If you do not provide an extension to the file then FTN95 assumes .f90 is the extension.
For anything else you should provide the extension with the file name.
If you have provided the extension and FTN95 says it can't find it then the file is not in the current folder nor on the PATH. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
alangr
Joined: 24 Oct 2016 Posts: 47 Location: Oxford,UK and Athens, Greece
|
Posted: Sun Jan 07, 2024 6:05 pm Post subject: |
|
|
Thank you for your help. I have found my problem which was that I had removed the file extension altogether somehow, so it is not surprising that I was having problems.
Red face; thanks again. _________________ Alan |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|