2 Jul 2012 12:49
arm-linux-gnueabi/4.6.4/ld: cannot find -lc
Hello all,
I'm new to ELDK since a couple of days. I tried to build a small hello
world style application with static linking.
I installed ELDK 5.2.1 on my PC (OS: Debian Wheezy, 32bit) like following:
> mount -o loop /home/arti/Downloads/eldk-5.2.1-armv4t.iso /media/cdrom1
> /media/cdrom1/install.sh armv4t
> source /opt/eldk-5.2.1/armv4t/environment-setup-armv4t-linux-gnueabi
Then I tried to generate a small c application (hello.c) :
#include <stdio.h>
#include <stdlib.h>
main (int ac, char **av)
{
while (1) {
printf ("hello\n");
sleep (1)
}
}
Compilation, static:
> arm-linux-gnueabi-gcc -static -o hello hello.c
Error message:
(Continue reading)
RSS Feed