This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
problem with ld that comes with version 2.10.0.24
- To: binutils at sources dot redhat dot com
- Subject: problem with ld that comes with version 2.10.0.24
- From: Ahmed El-Mahmoudy <ant1 at ants dot net dot dhis dot org>
- Date: Sat, 26 Aug 2000 16:55:23 +0300 (EEST)
- Reply-To: Ahmed El-Mahmoudy <amcons at ritsec3 dot com dot eg>
I just installed binutils yesterday, and since then almost all programs
won't compile, I tried to compile this simple hello world program:
#include <stdio.h>
#include <math.h>
int main(void) {
double x, y ,z ;
x = 4.5; y = 5.8;
printf("hello world\n");
z = pow(x,y);
}
and I got this error message :
[root on /home/root]#gcc -lm hello.c
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x1d): undefined reference to `__libc_start_main'
collect2: ld returned 1 exit status
[root on /home/root]#
what has caused this problem ?
I am using gcc version 2.95.1, & glibc version 2.1.3
--
+-----------------------------------------------------+
| Ahmed El-Mahmoudy |
| |
| E-mail reply address : amcons@ritsec3.com.eg |
| Web : http://members.muslimsites.com/aelmahmoudy/ |
| Snail mail : P.O. Box 10 Saray Elkobba, |
| Cairo ,Egypt. |
| Postal Code 11712 |
+-----------------------------------------------------+