Link issue and other issues...
Jerry DeLisle
jvdelisle@verizon.net
Sat Feb 23 19:55:00 GMT 2008
David Highley wrote:
> "Jerry DeLisle wrote:"
>> David Highley wrote:
>>> Trying to use the g77 3.3.3 compiler in a Cygwin environment to build
>>> some old Fortran code. Have a few issues. The biggest being entry point
>>> names and where the underscore characters are added.
>>>
>>> I have tried all combinations of -fno-underscoring and
>>> -fleading-underscore to try and get the underscore moved to the front of
>>> the name instead of being appended to the name. Need to build code that
>>> will link using Windows compilers with C++ code.
>>>
>>> Other issue was the keyword static which does not seem to be known by
>>> the compiler. I'm using the following options:
>>> -fvxt -ffixed-lin-length-none -fno-underscoring -fleading-underscore
>>> -mno-cygwin
>>>
>>> Last thing I ran into was the need to change:
>>> IF(VARIAB) to IF(VARIAB .NE. 0)
>>>
>>> Thanks
>>>
>> Have you tried gfortran? g77 is not really supported any more.
>
> I see no package for gfortran in the latest Cygwin updates.
True. There is an unofficial binary that I build here:
http://gcc.gnu.org/wiki/GFortranBinaries
With some instructions.
Jerry
More information about the Fortran
mailing list