In particular, here: http://gcc.gnu.org/onlinedocs/gcc-3.2.3/g77/Floating-point-Exception-Handling.html#Floating-point%20Exception%20Handling
where it states: "... gcc -o libtrapfpe.a trapfpe.c and then use it by adding -trapfpe to the g77 command line when linking ..." Whe I try it I get /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../crt1.o(.text+0x18): In function `_start': : undefined reference to `main' /tmp/ccC12cnM.o(.text+0xc): In function `trapfpe': : undefined reference to `feenableexcept' collect2: ld returned 1 exit status This is due to the fact that gcc does not produce an archive on the fly. One should do: gcc -c trapfpe.c ar rv libtrapfpe.a trapfpe.o Also linking is quoted incorrectly in the documentation. It should at least be "...-ltrapfpe..." ^ -- Summary: error in g77 documentation (all versions) Product: gcc Version: 3.2.3 Status: UNCONFIRMED Severity: trivial Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: boschini at cilea dot it GCC host triplet: 2.4.21-32.0.1.EL.cernsmp scientific linux cern http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25494