Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Undefined boost library symbol (boost::system::error_category) using Qt 5.0.2 and VS 2012
Qt 6.11 is out! See what's new in the release blog

Undefined boost library symbol (boost::system::error_category) using Qt 5.0.2 and VS 2012

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 2.8k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    I am building a application in Qt 5.0.2 (using VS2012) which uses the boost library. The linker detects the following undefined symbol in the boost library:

    "class boost::system::error_category const & __cdecl boost::system::generic_category(void)".

    I found that others had encountered this error with the advice to include the boost system library which I did. This didn't fix the problem so, as a brute force experiment, I included virtually every boost library (see below) yet the problem persists. If anyone can help I would appreciate it.

    LIBS += \ C:/boost_1_53_0/bin.v2/libs/atomic/build/msvc-11.0/debug/threading-multi/boost_atomic-vc110-mt-gd-1_53.lib
    C:/boost_1_53_0/bin.v2/libs/chrono/build/msvc-11.0/debug/link-static/threading-multi/libboost_chrono-vc110-mt-gd-1_53.lib
    C:/boost_1_53_0/bin.v2/libs/context/build/msvc-11.0/debug/threading-multi/boost_context-vc110-mt-gd-1_53.lib
    C:/boost_1_53_0/bin.v2/libs/date_time/build/msvc-11.0/debug/link-static/threading-multi/libboost_date_time-vc110-mt-gd-1_53.lib
    C:/boost_1_53_0/bin.v2/libs/exception/build/msvc-11.0/debug/link-static/threading-multi/libboost_exception-vc110-mt-gd-1_53.lib
    C:/boost_1_53_0/bin.v2/libs/filesystem/build/msvc-11.0/debug/link-static/threading-multi/libboost_filesystem-vc110-mt-gd-1_53.lib
    C:/boost_1_53_0/bin.v2/libs/iostreams/build/msvc-11.0/debug/threading-multi/boost_iostreams-vc110-mt-gd-1_53.lib
    C:/boost_1_53_0/bin.v2/libs/locale/build/msvc-11.0/debug/threading-multi/boost_locale-vc110-mt-gd-1_53.lib
    C:/boost_1_53_0/bin.v2/libs/math/build/msvc-11.0/debug/threading-multi/boost_math_tr1l-vc110-mt-gd-1_53.lib
    C:/boost_1_53_0/bin.v2/libs/program_options/build/msvc-11.0/debug/threading-multi/boost_program_options-vc110-mt-gd-1_53.lib
    C:/boost_1_53_0/bin.v2/libs/random/build/msvc-11.0/debug/threading-multi/boost_random-vc110-mt-gd-1_53.lib
    C:/boost_1_53_0/bin.v2/libs/regex/build/msvc-11.0/debug/threading-multi/boost_regex-vc110-mt-gd-1_53.lib
    C:/boost_1_53_0/bin.v2/libs/serialization/build/msvc-11.0/debug/threading-multi/boost_wserialization-vc110-mt-gd-1_53.lib
    C:/boost_1_53_0/bin.v2/libs/signals/build/msvc-11.0/debug/threading-multi/boost_signals-vc110-mt-gd-1_53.lib
    C:/boost_1_53_0/bin.v2/libs/system/build/msvc-11.0/debug/link-static/threading-multi/libboost_system-vc110-mt-gd-1_53.lib
    C:/boost_1_53_0/bin.v2/libs/thread/build/msvc-11.0/debug/link-static/threading-multi/libboost_thread-vc110-mt-gd-1_53.lib

    Wes

    1 Reply Last reply
    0
    • H Offline
      H Offline
      hpollak
      wrote on last edited by
      #2

      I had allso troubles with Boost by using 1.51.
      I switched to 1.47 then it worked.

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        Figured it out. I rebuilt the boost libraries as follows and it worked:
        bjam --build-type=complete --toolset=msvc address-model=64

        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