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

Re: Compilation error.



> 
> 	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"

Can you give the exact command you use?
it should be: gcc <filename> -lm (in case of math library).

regards,
jaju



- --------------------------------------------------------------------
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

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