Buy the book!
|[ < ]||[ > ]||[ << ]||[ Up ]||[ >> ]||[Top]||[Contents]||[Index]||[ ? ]|
g77-compiled programs (which should be done using
If this happens to you, try appending `-lc' to the command you
use to link the program, e.g. `g77 foo.f -lc'.
g77 already specifies `-lg2c -lm' when it calls the linker,
but it cannot also specify `-lc' because not all systems have a
file named `libc.a'.
It is unclear at this point whether there are legitimately installed
systems where `-lg2c -lm' is insufficient to resolve code produced
If your program doesn't link due to unresolved references to names
like `_main', make sure you're using the
g77 command to do the
link, since this command ensures that the necessary libraries are
loaded by specifying `-lg2c -lm' when it invokes the
command to do the actual link.
(Use the `-v' option to discover
more about what actually happens when you use the
Also, try specifying `-lc' as the last item on the
command line, in case that helps.
|webmaster||delorie software privacy|
|Copyright © 2003 by The Free Software Foundation||Updated Jun 2003|