Link issue and other issues...
FX Coudert
fxcoudert@gmail.com
Sat Feb 23 19:29:00 GMT 2008
> I would say the option for leading-underscore is not functioning
On i686-linux, it works fine:
$ gfortran-4.2 -c a.f90 && nm a.o
00000000 T xyz_
$ gfortran-4.2 -c a.f90 -fleading-underscore && nm a.o
00000000 T _xyz_
$ gfortran-4.2 -c a.f90 -fleading-underscore -fno-underscoring && nm a.o
00000000 T _xyz
The doc for -fleading-underscore says that it's not supported on all
targets:
> -fleading-underscore
> This option and its counterpart, -fno-leading-underscore, forcibly
> change the way C symbols are represented in the object file. One
> use is to help link with legacy assembly code.
> Warning: the -fleading-underscore switch causes GCC to generate
> code that is not binary compatible with code generated without that
> switch. Use it to conform to a non-default application binary
> interface. Not all targets provide complete support for this switch.
>
So maybe cygwin just doesn't support this option well? Can you try it
on C code and tell us if it works?
Thanks,
FX
--
François-Xavier Coudert
http://www.homepages.ucl.ac.uk/~uccafco/
More information about the Fortran
mailing list