Hello all!
I have been all over the internet on this, and have merely become more confused!
First off, I am using Fedora 20, 64-bit, with the current kernel version being 3.16.6-200.fc20.x86_64,
and the gcc version I have installed is gcc (GCC) 4.8.3 20140911 (Red Hat 4.8.3-7), which I installed using:
>sudo yum groupinstall "Development Tools"
When I try to compile a REALY SIMPLE C program, like the following:
Code:
/* Simple.c */
int main()
{
return 0;
}
using the command:
>gcc Simple.c -o Simple
I get the following error messages:
/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.8.3/../../../libc.so when searching for -lc
/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.8.3/../../../libc.a when searching for -lc
/bin/ld: skipping incompatible /lib/libc.so when searching for -lc
/bin/ld: skipping incompatible /lib/libc.a when searching for -lc
/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/bin/ld: cannot find -lc
collect2: error: ld returned 1 exit status
I believe I installed the development tools correctly (but have I?); I have also installed the
kernel-devel package upon a suggestion from an internet post...
I believe that this error message is telling me that the C / C++ library libc is not the correct version (or, more literally, an incompatible version) of that library? How can this be? How can it have occurred?
I am in desperate need of some assistance here!
If you require any other info. to help you resolve this issue, please let me know! I just can't figure this out!
Thanks in advance,
ZT.