<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>gcc libraries</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P><FONT SIZE=2 FACE="Arial">I have several PC's running Fedora Core 6 or 8. All gcc compilers are as originally installed during the Linux installation.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">When I compile programs using gcc libraries such as <math.h> I get "undefined reference" errors for each library function called.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">It appears as if the include files are found but the linker is not able to find the libraries.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I have used the compiler to build and install other applications without any problems. I did not have to adjust the search directories on other Linux installations, any idea what I am doing wrong?</FONT></P>
<P><FONT SIZE=2 FACE="Arial">I have also noted that some of the functions seem to be missing. As an example if I do a man fmod I find that there are three versions fmod, fmodf and fmodl all requiring math.h. When I grep math.h it doesn't have any of the fmod functions. When I grep the include directory, I find fmod only in tgmath.h.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">-------------------------------------------</FONT>
<BR><B><FONT COLOR="#50555A" SIZE=2 FACE="Arial">Lawrence A. Weber</FONT></B>
<BR><FONT COLOR="#50555A" SIZE=2 FACE="Arial">Consulting Engineer</FONT>
<BR><B><FONT COLOR="#11568B" SIZE=1 FACE="Arial">ANSALDO</FONT><FONT COLOR="#FF0000" SIZE=1 FACE="Arial"></FONT></B> <FONT COLOR="#E61E0F" SIZE=1 FACE="Arial">STS</FONT>
<BR><FONT COLOR="#E61E0F" SIZE=2 FACE="Arial">Union Switch & Signal</FONT>
<BR><FONT COLOR="#50555A" SIZE=2 FACE="Arial">1000 Technology Drive</FONT>
<BR><FONT COLOR="#50555A" SIZE=2 FACE="Arial">Pittsburgh, PA 15219-3120</FONT>
<BR><FONT COLOR="#50555A" SIZE=2 FACE="Arial">Ph: 412-688-2319</FONT>
<BR><FONT COLOR="#50555A" SIZE=2 FACE="Arial">Email: laweber@switch.com</FONT>
<BR><FONT SIZE=2 FACE="Arial">-------------------------------------------</FONT>
</P>
</BODY>
</HTML>