macOS: Link to static library built with libstdc++
-
@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 -
Hi,
I've forked the topic since it was not the same problem.
Do you get errors when linking to that library ?