Unlike with some runtime systems, it shouldn't be necessary (unless there are
bugs) to use a Fortran main program to ensure the
runtime--specifically the i/o system--is initialized.
However, to use
the g77 intrinsics GETARG() and IARGC() the
main() routine from the `libf2c' library must be used, either
explicitly or implicitly by using a Fortran main program.
This
main() program calls MAIN__() (where the names are C-type
extern names, i.e. not mangled).
You need to provide this
nullary procedure as the entry point for your C code if using
`libf2c''s main.
In some cases it might be necessary to
provide a dummy version of this to avoid linkers complaining about
failure to resolve MAIN__() if linking against `libf2c' and
not using main() from it.
Go to the first, previous, next, last section, table of contents.