[CLAM] FFTW vs GCC

Miguel Ramírez Jávega mramirez at iua.upf.es
Wed Nov 5 16:22:13 PST 2003


On Wed, 2003-11-05 at 20:06, Jordi Prats wrote:
> Hola,
> Tinc uns petits inconvenients a l'hora d'utilitzar la FFTW:
> 
> Em dona el següent error:
> 
> [rut at arkham fftw]$ gcc tr.c -lfftw3
> /usr/local/lib/libfftw3.a(trig1.o): In function `fftw_sincos':
> trig1.o(.text+0xb3): undefined reference to `sin'
> trig1.o(.text+0xdd): undefined reference to `cos'
> collect2: ld returned 1 exit status
> [rut at arkham fftw]$
> 

Try:

$gcc tr.c -lfftw3 -lm

That should do the trick.

Miguel.





More information about the clam-users mailing list