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.
Can you help me out? [I suspect the problem's got to do with my OS rather than my gcc - that's why i'm posting on this topic]
ThanQ!
DigJaM