[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Compilation error.



On Sat, 5 Jun 1999, Muthu wrote:

>	I have a Slackware 3.5 machine. When I compile(using cc or gcc) a small C
>program using the "-l" (Since I am using <math.h> include file in the
>program> option, it is giving the following two line error.
>
Was it just "gcc foobar.c -l" that you used or 
"gcc foobar.c -lm"? It should be latter
which links the library libm.a which contains the math routines.

Hope that helps,

sridhar

********************************************
Dr. Sridhar M. A.
Department of Physics
University of Mysore, Manasagangotri
Mysore 570 006, INDIA

Tel: +91-821-516133
Fax: +91-821-516133

E-mail: mysxrd@xxxxxxxxxxxxxxxxxxxx
*******************************************



- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
Linux India is NOT a forum for Microsoft/India/Pakistan/US/UK bashing.
Flame baits will not be tolerated.  If you can appreciate satire read
http://www.templetons.com/brad/emily.html

------------------------------