Results 1 to 2 of 2

Thread: Qt Creator and using an external library under windows

  1. #1
    Join Date
    Sep 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Qt Creator and using an external library under windows

    I have a little problem with the Qt Creator and using an external library with windows.
    I have installed successfully the current version of Qt Creator. For my Qt project, I want to use an additional scientific library for mathematics. This library is installed in the default windows folder c:\programme\...
    In the system environment variables LIB and INCLUDE was added the path for the library (/lib and /include).
    Now I have created a little Qt Project with a mainwindow.
    In the created projectfile I have added the following:

    win32:LIBS += c:\programme\sc\lib\sc.lib

    In the next step, I have tried to include one of the several header files of the library, like this:

    #include "interval.hpp" or
    #include <interval.hpp>

    When I compile the project, the problem "interval.hpp: No such file or directory" stopps the compiler.

    I hope you have an answer for me for this little problem.

    Thanks a lot,
    QChristian

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Qt Creator and using an external library under windows

    You need to tell the compiler where to find the header.

    You can add the directory of interval.hpp to the project. See the project settings in Qt Creator

Similar Threads

  1. Using the standard library with qt creator
    By DragonLance156156 in forum Qt Tools
    Replies: 12
    Last Post: 3rd February 2016, 08:59
  2. QT Creator and additional library
    By banita in forum Qt Tools
    Replies: 4
    Last Post: 7th September 2010, 14:37
  3. Replies: 5
    Last Post: 18th June 2010, 21:13
  4. how to link external library in qt linux?
    By qtlinuxnewbie in forum Qt Programming
    Replies: 2
    Last Post: 5th March 2010, 09:11
  5. Adding an external Library
    By afflictedd2 in forum Qt Programming
    Replies: 1
    Last Post: 13th December 2008, 05: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.