Silverfrost Forums

Welcome to our forums

Mixed line length compiling

23 Feb 2007 7:34 #1737

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 😮ops:

24 Feb 2007 7:43 #1740

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).

24 Feb 2007 11:56 #1743

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:

      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
Please login to reply.