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

Compilation error.



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

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