1 (edited by szhosain 2014-10-14 05:29:07)

Topic: Legacy extension ... Hollerith constants

Hi.

I am trying to compile some very old Fortran code and encountering a problem that I hope someone can comment on.

Specifically, this old code uses tons of Hollerith constants (yeah ... it is really old code) for text.

Needless to say, I get _thousands_ of warning messages and the code does not compile ... too many warning messages.

Editing to try and change it to more modern text declarations would be virtually impossible because I am just not sure what code would break.

I am a novice with Simply Fortran 2, of course, so not sure what to do to fix this problem ... would appreciate some advice.

Thanks much!

Here are examples of a couple of the error messages:

     DATA ABLNK /1H  /                                                 
                    1
Warning: Legacy Extension: Hollerith constant at (1)
.\file.f:136.58:



      DATA NDEFIN /2H.U/                                               
                     1
Warning: Legacy Extension: Hollerith constant at (1)
.\file.f:794.55:

Re: Legacy extension ... Hollerith constants

Try changing the enforced standard to "Legacy".

This is under Project>Options>Fortran tab. You need to select from the drop-down and click in the checkbox to enable the option.

If this doesn't suppress the warnings you could try adding -fmax-errors=0 under the compiler flags tab so an unlimited number of warnings may be printed.

--
David

Re: Legacy extension ... Hollerith constants

Thanks! I will try those and report back if I see problems ...