Error: /usr/bin/ld: cannot find -lc when compile simplest program "hello.c"

Hello all,

I'm beginner of Linux.

I use Fedora 16 (RedHat) 64bits. I wrote a program named hello.c

int main()
{
}

I compiled it but I got following result:
"
# gcc hello.c
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.6.0/../../../libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
"

Please help me to resolve this issue.

Thank you very much !
Topic archived. No new replies allowed.