[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: Compilation error.
- Subject: Re: Compilation error.
- From: "V. Geethalakshmi" <geetha@xxxxxxxxxxxxxxxx>
- Date: Sat, 5 Jun 1999 10:27:37 +0530 (IST)
Try using cc <filename> -lm
It works for my programs
V. Geethalakshmi.
On Sat, 5 Jun 1999, Muthu wrote:
> Hello Everybody,
>
> 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.
>
> "/usr/i586-pc-linux-gnulibc1/bin/ld: Cannot open -l-lgcc: No such file or
> directory
> Collect2: ld returned 1 exit status"
>
> If I am compiling programs which does not use any include files except
> <stdio.h>, it executes without any errors. Please help me out. Eagerly
> waiting for your reply.
>
> regards
> muthu
>
>
> --------------------------------------------------------------------
> 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
>
- --------------------------------------------------------------------
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
------------------------------