Re: fftw unable to compile
Did you add "-lfftw" to tell gcc that you want to link with fftw?
Re: fftw unable to compile
You're not linking with the library. Add "-lfftw" (or something like that) to your linker flags.
Re: fftw unable to compile
Thanks for the -lfftw thing...
However, i now have a new error:
Code:
/usr/bin/ld: cannot find -lfftw
collect2: ld returned 1 exit status
superutsav
Re: fftw unable to compile
Quote:
Originally Posted by superutsav
Thanks for the -lfftw thing...
However, i now have a new error:
Code:
/usr/bin/ld: cannot find -lfftw
collect2: ld returned 1 exit status
locate libfftw
and add -L with a directory where it resides
And check if it is libfftw or libfftw3, maybe you just need to change "-lfftw" to "-lfftw3"
Re: fftw unable to compile
Hey... Thanks again... this time, however, there's yet another error, and i think this is an intrinsic fftw error:
Code:
/usr/local/lib/libfftw3.a(trig1.o)(.text+0xb9): In function `fftw_sincos':
: undefined reference to `cos'
/usr/local/lib/libfftw3.a(trig1.o)(.text+0xe5): In function `fftw_sincos':
: undefined reference to `sin'
collect2: ld returned 1 exit status
What can i do about this?
superutsav
Re: fftw unable to compile
Quote:
Originally Posted by superutsav
: undefined reference to `cos'
[...]
What can i do about this?
You are not linking your program with maths library ("-lm").
Re: fftw unable to compile
Thanks guys...
That was an awesome quick reply... the fastest i've ever got on a forum :eek:
problem solved ... thanks
superutsav