Results 1 to 2 of 2

Thread: MSVC linker can't find library

  1. #1
    Join Date
    Jun 2013
    Posts
    1
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: MSVC linker can't find library

    Hi,

    I just downloaded latest Qt5 and wanted to build rather simple project that depends on fftw library which I build in VS2010 and copied to my "C:\src\lib" folder.
    In Qt project I added "LIB += -Lc:/src/lib -lfftw3-3" and additionally I defined "LIB" environment variable point to this dir, which MS build system understands as additional library dir.

    However, I can't compile the project as I always get this linker error:

    LINK : fatal error LNK1181: cannot open input file 'fftw3-3.lib'

    I guess I'm missing something obvious considering this is my first time with Qt Creator, but I just can't see any other way to set project dependencies except this .pro file which doesn't seem to work for me.


    Added after 12 minutes:


    Just after I opened this thread I realized that library name didn't match: fftw-3.3.lib vs. fftw3-3.lib
    So everything is as expected now.
    Hope not to bother you again

    Cheers
    Last edited by torin; 20th June 2013 at 23:53.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: MSVC linker can't find library

    The PRO file variable is LIBS not LIB

Similar Threads

  1. Replies: 0
    Last Post: 10th June 2013, 02:54
  2. Replies: 6
    Last Post: 17th August 2012, 21:35
  3. Replies: 3
    Last Post: 22nd February 2011, 09:53
  4. Replies: 1
    Last Post: 18th February 2011, 12:08
  5. QtDesigner linker error MSVC++ 2005
    By The Storm in forum Installation and Deployment
    Replies: 1
    Last Post: 15th September 2007, 23:51

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.