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 

source file extension query

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



Joined: 24 Oct 2016
Posts: 47
Location: Oxford,UK and Athens, Greece

PostPosted: Sat Jan 06, 2024 12:07 pm    Post subject: source file extension query Reply with quote

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
View user's profile Send private message
mecej4



Joined: 31 Oct 2006
Posts: 1886

PostPosted: Sat Jan 06, 2024 3:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
alangr



Joined: 24 Oct 2016
Posts: 47
Location: Oxford,UK and Athens, Greece

PostPosted: Sat Jan 06, 2024 3:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Sat Jan 06, 2024 4:25 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
alangr



Joined: 24 Oct 2016
Posts: 47
Location: Oxford,UK and Athens, Greece

PostPosted: Sun Jan 07, 2024 6:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General 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