Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. macOS: Link to static library built with libstdc++
Forum Updated to NodeBB v4.3 + New Features

macOS: Link to static library built with libstdc++

Scheduled Pinned Locked Moved Installation and Deployment
2 Posts 2 Posters 643 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.
  • SGaistS SGaist

    You're welcome !

    Change it to -stdlib=libc++

    Since you have it working now, please mark the thread as solved using the "Topic Tool" button so that other forum users may know a solution has been found :)

    M Offline
    M Offline
    maoliangwu
    wrote on last edited by
    #1

    @SGaist I know CONFIG+=c++11 is helpfull to some condition to solve this problem. But Mine is a little different. In my program, I have to set QMAKE_CXXFLAGS+=-stdlib=libstdc++,because I want to link some static library, who were building with libstdc++. There comes the problem, can I use CONFIG += c++11 and QMAKE_CXXFLAGS += -stdlib=libstdc++ both together?
    It seemed that if I set QMAKE_CXXFLAGS += -stdlib=libstdc++, errors like
    'qstring.h:739:55: error: no type named 'u16string' in namespace 'std'
    static inline QString fromStdU16String(const std::u16string &s);' will appear. But if I donot set QMAKE_CXXFLAGS += -stdlib=libstdc++ I will met some symbols link errors

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

      Hi,

      I've forked the topic since it was not the same problem.

      Do you get errors when linking to that library ?

      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