Important: Please read the Qt Code of Conduct -

Qt & Boost not going along

  • Hello' People,

    I've been trying to run Boost with Qt & Mingw but could not get them both along.
    After linking the library (using filesystem), I get the following errors:

    cannot find -lboost_system
    cannot find -llboost_filesystem
    error: ld returned 1 exit status

    In my .pro file I've linked Boost as follow:

    INCLUDEPATH += N:/Libraries/boost_1_60_0
    LIBS += -L"N:/Libraries/boost_1_60_0/stage/lib"
    LIBS += "N:/Libraries/boost_1_60_0/stage/lib/libboost_filesystem-mgw47-mt-1_60.a"
    LIBS += "N:/Libraries/boost_1_60_0/stage/lib/libboost_system-mgw47-mt-1_60.a"
    LIBS += -lboost_system -lboost_filesystem

    To that, I made sure Qt & Boost compiled under the same MinGW compiler version (both using CodeBlocks').

    Is there something I did not do properly ?

    Thanks !

Log in to reply