main.o(.text+0x29e): undefined reference to `getarg_
Paul Brook
paul@codesourcery.com
Wed Feb 16 11:21:00 GMT 2005
On Wednesday 16 February 2005 07:58, Lars Segerlund wrote:
> Why not make the g77 flag turn off all g95 ( and so on ) features ?
I'm not sure what you're suggesting here.
We already have -std=f95, which should disable all nonstandard extensions.
As for the specific example "external getarg", It's not possible to supply a
single implementation. This worked in g77 because there was only one default
integer kind. In g95 The user can change the default integer kind, so putting
"subroutine getarg" in libgfortran is not an option.
One solution may be to add [annother] option to gfortran which says ignore
"external foo" if foo is an intrinsic function. This will obviously break
some code, but hopefully a different subset of code than is affected by the
external getarg problem :-)
Paul
More information about the Fortran
mailing list