Buy the book!
|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
On systems with Fortran compilers other than
code compiled by
g77 is not expected to work
well with code compiled by the native compiler.
(This is true for
f2c-compiled objects as well.)
Libraries compiled with the native compiler probably will have
to be recompiled with
g77 to be used with
Reasons for such incompatibilities include:
g77to call a procedure the linker
ldsees given the name `_foo_', while the apparently corresponding statement `SUBROUTINE FOO' might be compiled by the native compiler to define the linker-visible name `_foo', or `_FOO_', and so on.
This is why simply getting
transform procedure names the same way a native
compiler does is not usually a good idea--unless
some effort has been made to ensure that, aside
from the way the two compilers transform procedure
names, everything else about the way they generate
code for procedure interfaces is identical.
For example, on the Sun you would have to add `-L/usr/lang/SCx.x -lF77 -lV77' to the link command.
|webmaster||delorie software privacy|
|Copyright © 2003 by The Free Software Foundation||Updated Jun 2003|