I'm not able to compile C or C++ programs using gcc or g++. My gcc version is 4.1.1-30. The error message is as follows:
[root@digjam tmp]# gcc test.c
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
I tried installing older versions of gcc but that did not help one bit. I also tried using the -march option; but even that didn't help. Also tried installing glibc and glibc-devel - didn't work.
Can you help me out?
ThanQ!
DigJaM