mirror of https://github.com/tLDP/LDP
updated
This commit is contained in:
parent
d652d0cdca
commit
97ff4fbc84
|
@ -12,8 +12,8 @@
|
|||
</author>
|
||||
<revhistory>
|
||||
<revision>
|
||||
<revnumber>1.16</revnumber>
|
||||
<date>2001-09-16</date>
|
||||
<revnumber>1.18</revnumber>
|
||||
<date>2001-10-13</date>
|
||||
<authorinitials>rk</authorinitials>
|
||||
</revision>
|
||||
</revhistory>
|
||||
|
@ -326,10 +326,20 @@ endterm="howtos-and-other-documentation">'')
|
|||
<sect2 label="1.6">
|
||||
<title id="what-ports-to-other-processors-are-there">
|
||||
Ports to Other Processors.</title>
|
||||
<para>The Web site, Overview of Linux Ports: <ulink
|
||||
<para>
|
||||
The Web site, Overview of Linux Ports: <ulink
|
||||
url="http://www.itp.uni-hannover.de/~kreutzm/de/lin_plattforms.html">
|
||||
<literal>http://www.itp.uni-hannover.de/~kreutzm/de/lin_plattforms.html
|
||||
</literal></ulink> provides a listing of known ports. In addition,
|
||||
</literal></ulink> provides a listing of known ports.
|
||||
</para>
|
||||
<para>
|
||||
Another site with a list of ports is:
|
||||
<ulink url="http://lodda.igo.uni-hannover.de/ports/linux_ports.html">
|
||||
<literal>http://lodda.igo.uni-hannover.de/ports/linux_ports.html</literal>
|
||||
</ulink>
|
||||
</para>
|
||||
<para>
|
||||
In addition,
|
||||
the following information is available about specific ports:
|
||||
</para>
|
||||
<para>
|
||||
|
@ -1389,7 +1399,7 @@ an up-to-date list of News groups.
|
|||
What Other FAQ's and Documentation Are There for Linux?
|
||||
</title>
|
||||
<para>
|
||||
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/"><literal>http://www.kaffe.org/</literal>.
|
|||
</ulink>
|
||||
</para>
|
||||
<para>
|
||||
There is a resource page of free and commercial Java packages
|
||||
at: <ulink url="http://www.blackdown.org/java-linux.html">
|
||||
<literal>http://www.blackdown.org/java-linux.html</literal></ulink>.
|
||||
</para>
|
||||
<para>
|
||||
Netscape <application>Communicator</application> comes with its own
|
||||
version of the <application>Java Runtime Environment</application>, so
|
||||
if you need Java only to view Web graphics, you may already have the
|
||||
|
@ -5724,6 +5739,41 @@ The file <filename>mm/swapfile.c</filename> has all of the gory details.
|
|||
[Peter Moulder, Gordon Weast]
|
||||
</para>
|
||||
</sect2>
|
||||
|
||||
<sect2>
|
||||
<title id="math-lib-errors">
|
||||
How To Prevent Errors when Linking Programs with Math Functions.</title>
|
||||
<para>
|
||||
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:
|
||||
</para>
|
||||
<para>
|
||||
<screen>
|
||||
/tmp/ccDUQM4J.o: In function `main':
|
||||
/tmp/ccDUQM4J.o(.text+0x19): undefined reference to `sqrt'
|
||||
collect2: ld returned 1 exit status
|
||||
</screen>
|
||||
</para>
|
||||
<para>
|
||||
You need use the <literal>-lm</literal> option with GCC to link with
|
||||
the math libraries:
|
||||
</para>
|
||||
<para>
|
||||
<screen>
|
||||
# gcc -o program program.c -lm
|
||||
</screen>
|
||||
</para>
|
||||
<para>
|
||||
Make sure also to use the statement
|
||||
<literal>#include <math.h></literal> in the source file.
|
||||
</para>
|
||||
<para>
|
||||
[Florian Schmidt]
|
||||
</para>
|
||||
</sect2>
|
||||
|
||||
</sect1>
|
||||
|
||||
<sect1 label="8">
|
||||
|
|
Loading…
Reference in New Issue