On Thu, Nov 19, 2009 at 10:15 PM, fabio cherchi <fabio.cherchi at yahoo.it> wrote: > Hi Benny et al, > > Unfortunately I have the following error, it seems I cannot use the floor > function when fixed point is used. > > [...] > /home/fabio/pjproject-1.2-ter-fpu/third_party/lib/libspeex-nios2-altera-linux-uclibc.a(fftwrap.o)(.text+0x294): > In function `spx_fft_float': > : undefined reference to `floor' > /home/fabio/pjproject-1.2-ter-fpu/third_party/lib/libspeex-nios2-altera-linux-uclibc.a(fftwrap.o)(.text+0x494): > In function `spx_ifft_float': > : undefined reference to `floor' > collect2: ld returned 1 exit status > make[2]: *** [../bin/pjmedia-test-nios2-altera-linux-uclibc] Error 1 > make[2]: Leaving directory `/home/fabio/pjproject-1.2-ter-fpu/pjmedia/build' > make[1]: *** [pjmedia-test] Error 2 > make[1]: Leaving directory `/home/fabio/pjproject-1.2-ter-fpu/pjmedia/build' > make: *** [all] Error 1 > > > Does somebody solved this issue or have any suggestion? Maybe I'm missing > some flag or option. > Someone told me that speex AEC doesn't have fixed point version, only floating point. So probably you can add: LDFLAGS += -lm in your user.mak file (put it in root PJ directory). See user.mak.sample for more info. Cheers Benny