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 

Mixed line length compiling

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



Joined: 22 Feb 2007
Posts: 2

PostPosted: Fri Feb 23, 2007 8:34 pm    Post subject: Mixed line length compiling Reply with quote

I have inherited some Fortran code that I need to compile. This code has lines longer than 74 characters. Because of this I have been trying to compile with the WIDE_SOURCE option. However, this gives me errors when I include windows.ins. Using the FREE_FORMAT option allows the windows.ins file to be included without errors but gives errors compiling my .for files.

Is there a way that FTN95 will compile long lines while using the split lines in windows.ins

I appologise if I have used incorrect terminology in this post. I am not a trained fortran coder Embarassed
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Sat Feb 24, 2007 8:43 am    Post subject: Reply with quote

What kind of errors are reported when you use FREE_FORMAT?
Are they errors that can be removed by global editing?
Failing that...

If you want to use windows.ins in new code then I can think of two approaches. 1) Put all of your new code in new files (either fixed or
free format) or 2)use the MODULE form of windows.ins and "USE mswin"
within your program (you should check the details because I have not
used this form for a while).
Back to top
View user's profile Send private message AIM Address
James



Joined: 22 Feb 2007
Posts: 2

PostPosted: Sat Feb 24, 2007 12:56 pm    Post subject: Reply with quote

Hi Paul,

The error I get when compiling with FREE_SOURCE is "*** Unpaired right bracket(s) (In include file C:\Code\scmg.par)" the scmg.par file contains the following:
Code:

      Integer*4 Maxb,Maxr,Maxrb,Maxli,Maxann,Maxtmp,nbno,Maxloc
      Integer*4 Maxfac,Maxcrd,maxphp,maxhp,maxp

      Parameter (Maxb=1500,Maxfac=maxb*120/100,Maxcrd=Maxb*30, !Maxr=32000,
     +           Maxli=maxb*2,Maxann=40,Maxloc=150) ! ,Maxrb=32500
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 -> Support 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