error compiling

Anas Alzouhbi anas.lbn at gmail.com
Tue Apr 7 19:00:07 CEST 2009


> arm-angstrom-linux-gnueabi-gcc -march=armv4t -mtune=arm920t -std=gnu99
> -Wall -pedantic -std=c99 -fexpensive-optimizations
> -fomit-frame-pointer -frename-registers -Os
> -L/usr/local/openmoko/arm/arm-angstrom-linux-gnueabi/usr/lib -o
> inclinaison inclinaison.o
> inclinaison.o: In function `processInputEvents':
> inclinaison.c:(.text+0x128): undefined reference to `sqrt'
> collect2: ld returned 1 exit status

>Here the linker complains about being unable to find the definition of
>sqrt.
>You need to add the math library (libm) in this command line, using
>the "-lm" switch.

I tried 'ln with gcc, but I'm interested to compile it with toolchain
so the command is make and is not gcc
and it doesn't successful with make :(
what should I do??




More information about the community mailing list