Results 1 to 5 of 5

Thread: linking fftw 3.0.1

  1. #1
    Join Date
    Jan 2007
    Posts
    3
    Thanks
    2
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default linking fftw 3.0.1

    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

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: linking fftw 3.0.1

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

  3. The following user says thank you to wysota for this useful post:

    Yacob (18th January 2007)

  4. #3
    Join Date
    Jan 2007
    Posts
    3
    Thanks
    2
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: linking fftw 3.0.1

    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

  5. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: linking fftw 3.0.1

    Quote Originally Posted by Yacob View Post
    /usr/bin/ld: cannot find -llibfftw3.a
    It should be "-lfftw3".

  6. The following user says thank you to jacek for this useful post:

    Yacob (18th January 2007)

  7. #5
    Join Date
    Jan 2007
    Posts
    3
    Thanks
    2
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: linking fftw 3.0.1

    Quote Originally Posted by jacek View Post
    It should be "-lfftw3".
    Yes that true. Thank u very much !

Similar Threads

  1. fftw problem
    By lordy in forum General Programming
    Replies: 1
    Last Post: 16th March 2006, 22:36
  2. Replies: 4
    Last Post: 20th February 2006, 10:11
  3. fftw unable to compile
    By superutsav in forum General Programming
    Replies: 7
    Last Post: 24th January 2006, 15:10

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.