From: Bill G. <bg...@bi...> - 2008-11-26 19:51:10
|
Jim F wrote: > Hi, > > I've been playing with the Gumstix OE implementation and have had good > luck so far, compiling packages and my own code. I am trying now to > compute an FFT - so I need to be able to perform trigonometric functions > such as sine and cosine - and I'm having trouble. I've tried compiling > using glibc and uclibc (where do I set USE_C99_MATH btw, not sure if > that's right or not), and in both cases I get the following error: > > | NOTE: make -e MAKEFLAGS= > | arm-angstrom-linux-uclibcgnueabi-gcc -march=armv5te -mtune=xscale > -L/home/friel/gumstix/gumstix-oe/tmp/staging/arm-angstrom-linux-uclibcgnueabi/lib > -Wl,-rpath-link,/home/friel/gumstix/gumstix-oe/tmp/staging/arm-angstrom-linux-uclibcgnueabi/lib > -Wl,-O1 fft_example.c fft.c print_to_file.c -o fft_example > | /tmp/ccPh6qL8.o: In function `fft': > | fft.c:(.text+0x2c8): undefined reference to `cos' > | fft.c:(.text+0x300): undefined reference to `sin' > | collect2: ld returned 1 exit status > | make: *** [fft_example] Error 1 > | FATAL: oe_runmake failed Try linking with -lm, it looks like you are missing libm. b.g. -- Bill Gatliff bg...@bi... |