From 97ff4fbc84e61172dea8eb928b75ab354569657c Mon Sep 17 00:00:00 2001 From: gferg <> Date: Tue, 6 Nov 2001 13:18:31 +0000 Subject: [PATCH] updated --- LDP/faq/docbook/Linux-FAQ.sgml | 60 +++++++++++++++++++++++++++++++--- 1 file changed, 55 insertions(+), 5 deletions(-) diff --git a/LDP/faq/docbook/Linux-FAQ.sgml b/LDP/faq/docbook/Linux-FAQ.sgml index d828e1b5..7bbbfd26 100644 --- a/LDP/faq/docbook/Linux-FAQ.sgml +++ b/LDP/faq/docbook/Linux-FAQ.sgml @@ -12,8 +12,8 @@ - 1.16 - 2001-09-16 + 1.18 + 2001-10-13 rk @@ -326,10 +326,20 @@ endterm="howtos-and-other-documentation">'') Ports to Other Processors. -The Web site, Overview of Linux Ports: +The Web site, Overview of Linux Ports: http://www.itp.uni-hannover.de/~kreutzm/de/lin_plattforms.html - provides a listing of known ports. In addition, + provides a listing of known ports. + + +Another site with a list of ports is: + +http://lodda.igo.uni-hannover.de/ports/linux_ports.html + + + +In addition, the following information is available about specific ports: @@ -1389,7 +1399,7 @@ an up-to-date list of News groups. What Other FAQ's and Documentation Are There for Linux? -There are a number of special-interest FAQ's on different subjects +There are a number of special interest FAQ's on different subjects related to system administration and use, and also on miscellaneous topics like Flying Saucer Attacks (the music) and support for recovering sysadmins. @@ -3207,6 +3217,11 @@ url="http://www.kaffe.org/">http://www.kaffe.org/. +There is a resource page of free and commercial Java packages +at: +http://www.blackdown.org/java-linux.html. + + Netscape Communicator comes with its own version of the Java Runtime Environment, so if you need Java only to view Web graphics, you may already have the @@ -5724,6 +5739,41 @@ The file mm/swapfile.c has all of the gory details. [Peter Moulder, Gordon Weast] + + + +How To Prevent Errors when Linking Programs with Math Functions. + +Older run-time libraries included the math library in the C run-time +library, so it was not necessary to specify the math library separately. +If the compiler generates a message like this when linking a program that +uses math functions: + + + + /tmp/ccDUQM4J.o: In function `main': + /tmp/ccDUQM4J.o(.text+0x19): undefined reference to `sqrt' + collect2: ld returned 1 exit status + + + +You need use the -lm option with GCC to link with +the math libraries: + + + + # gcc -o program program.c -lm + + + +Make sure also to use the statement +#include <math.h> in the source file. + + +[Florian Schmidt] + + +