Results 1 to 2 of 2

Thread: Unable to reference external library

  1. #1
    Join Date
    Sep 2015
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Unable to reference external library

    Hello

    I have an issue when I try to build my Qt app (within Qt creator, MVSC2013 compiler). I need to include the Bloomberg C++ API and I think this is what is the caused of my issue.
    I have used the Qt tool to add the external library, and the following script has been generated in the .pro file:

    win32:CONFIG(release, debug|release): LIBS += -L$$PWD/API/APIv3/C++API/v3.8.18.1/lib/ -lblpapi3_64
    else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/API/APIv3/C++API/v3.8.18.1/lib/ -lblpapi3_64d
    else:unix: LIBS += -L$$PWD/API/APIv3/C++API/v3.8.18.1/lib/ -lblpapi3_64

    INCLUDEPATH += $$PWD/API/APIv3/C++API/v3.8.18.1/include
    DEPENDPATH += $$PWD/API/APIv3/C++API/v3.8.18.1/include

    But I have the following message in the "Issues tab" when I try to build the project (after running qmake):
    LNK1104: cannot open file 'blpapi3_64d.lib'

    Can you help me please?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,403
    Thanks
    37
    Thanked 1,542 Times in 1,493 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Unable to reference external library

    Does that library file exist?

    If yes, is it built with the same compiler as the Qt program?

    Cheers,
    _

Similar Threads

  1. adding external library
    By anh5kor in forum Qt Programming
    Replies: 1
    Last Post: 10th November 2014, 15:32
  2. Reference an external C dll
    By newtoncw in forum Qt Programming
    Replies: 11
    Last Post: 23rd September 2012, 11:49
  3. Circular reference ... Unable to write forwarding
    By tonnot in forum General Programming
    Replies: 6
    Last Post: 27th June 2011, 11:26
  4. QT and my own shared library, undefined reference to ...
    By webquinty in forum General Programming
    Replies: 4
    Last Post: 4th March 2009, 15:09
  5. Adding an external Library
    By afflictedd2 in forum Qt Programming
    Replies: 1
    Last Post: 13th December 2008, 05:51

Tags for this Thread

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.