Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Adding A library to a project
Forum Updated to NodeBB v4.3 + New Features

Adding A library to a project

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DeanQt
    wrote on last edited by
    #1

    Im trying to add the well known boost library to my C++ Project using Qt Creator

    The downloaded boost file sits in my drive, say, C:\boost_1_54_0

    So in my Qt Creator project file I include the following:

    bq. INCLUDEPATH += C:\boost_1_54_0
    LIBS += -LC:\C:\boost_1_54_0\boost\algorith\string -lstring

    Im not too sure abour "-lstring", what must I put in this place?
    When including #include <boost/algorithm/string.hpp> in the main file I get the error that there is no such file or directory.

    How do I include libraries?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Your include path doesn't look right. Don't you have a folder name "include" in your boost_1_54_0 directory ?

      Also, to avoid problems, you should replace all backslashes by forward slashes in your paths when using Qt.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved