PDA

View Full Version : linking fftw 3.0.1



Yacob
18th January 2007, 12:23
Hi All,

I've downloaded and installed fftw 3.0.1 ( on Red Hat Linux). Now, I am unable to compile my program using fftw...

I am including the header file <fftw3.f> in my program. I have also specified where my fftw linker resides: I have done the following

f95 fftw3_test.f90 -L/scratch/local/ahunegna/SHTOOLS/src/lib -llibfftw3.a
My link library for the fftw3 resides at the directory "/scratch/local/yacob/src/lib" and it is called: libfftw3.a

when I compiled the above fortran program on my NAG Fortran compiler under red hat Linux, I got the following error message:

/usr/bin/ld: cannot find -llibfftw3.a
collect2: ld returned 1 exit status

What have I done wrong ?

Many thankx

Yacob

wysota
18th January 2007, 12:51
-L/scratch/local/ahunegna/SHTOOLS/src/lib

"/scratch/local/yacob/src/lib"
These two paths differ, don't you think?

Yacob
18th January 2007, 13:59
Thank you

Sorry they differ, but it was a typographic error on my part when I send my questions to the forum. My problems remains.

/usr/bin/ld: cannot find -llibfftw3.a
collect2: ld returned 1 exit status

What have I done wrong ?

Many thankx

Yacob

jacek
18th January 2007, 14:10
/usr/bin/ld: cannot find -llibfftw3.a
It should be "-lfftw3".

Yacob
18th January 2007, 16:14
It should be "-lfftw3".

Yes that true. Thank u very much !