Results 1 to 5 of 5

Thread: Linking DLL to Project

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2010
    Posts
    23
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Linking DLL to Project

    Hey everyone,

    I'm trying to link the FFTW libraries to my project in Windows. It works great when I do my development on my Macbook but I'm having difficulty getting the DLLs to link in on windows (I haven't really done it before)

    I have placed the libfftw3-3.dll and fftw3.h file in my C:/Windows/System32/ directory. The error now I get is "undefined reference to '_imp_fftw_malloc', etc., indicating that the linking was incorrect.

    Sorry, I know I'm a newbie at this. Any suggestions?

    Here is my .pro file:
    Qt Code:
    1. HEADERS += \
    2. mainwindow.h \
    3. corrsettingsdialog.h \
    4. fileopendialog.h \
    5. vardefs.h \
    6. qpiv.h \
    7. vectorscalingdialog.h \
    8. batchsettings.h
    9.  
    10. SOURCES += \
    11. mainwindow.cpp \
    12. main.cpp \
    13. corrsettingsdialog.cpp \
    14. corr_dcc.cpp \
    15. fileopendialog.cpp \
    16. subpixel_est.cpp \
    17. outlier_det.cpp \
    18. interp_vec.cpp \
    19. temp.cpp \
    20. run_corr.cpp \
    21. grid_gen.cpp \
    22. file_func.cpp \
    23. vectorscalingdialog.cpp \
    24. corr_dncc.cpp \
    25. batchsettings.cpp \
    26. corr_fft.cpp
    27.  
    28. FORMS += \
    29. corrsettingsdialog.ui \
    30. fileopendialog.ui \
    31. vectorscalingdialog.ui \
    32. batchsettings.ui
    33.  
    34. win32 {
    35. LIBS += -LC:/Windows/System32/libfftw3-3
    36. INCLUDEPATH += C:/Windows/System32/
    37. }
    38.  
    39. macx {
    40. LIBS += -lfftw3 -lm
    41. INCLUDEPATH += /usr/local/include
    42. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by lynchkp; 13th December 2010 at 20:35.

Similar Threads

  1. Linking With Qt VS Add in
    By rcjohns in forum Newbie
    Replies: 2
    Last Post: 14th March 2010, 12:42
  2. Replies: 1
    Last Post: 3rd December 2009, 23:34
  3. Linking
    By ^NyAw^ in forum General Programming
    Replies: 7
    Last Post: 30th October 2008, 17:37
  4. Error Linking QWT-project
    By effendi in forum Qwt
    Replies: 1
    Last Post: 28th October 2008, 06:54
  5. Project generation on linux from QT Project
    By darpan in forum Qt Programming
    Replies: 6
    Last Post: 11th December 2006, 09:43

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
  •  
Qt is a trademark of The Qt Company.