I am trying to run a Qt project that depends upon boost filesystem library.
Qt version: 5.6
Mac OSX 10.12
Xcode version: 8.0
Boost: 1.54
When I try to build the project, I get the following error,
"typeinfo for std::codecvt<wchar_t, char, __mbstate_t>", referenced from:
typeinfo for boost::filesystem::detail::utf8_codecvt_facet in libboost_filesystem-mt.a(utf8_codecvt_facet.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've looked at many threads on stack overflow (1, 2, 3), but none of them seem to solve my issue.
My .pro file has the following statements
macx:INCLUDEPATH += ../../boost_1_54_0
macx:LIBPATH += ../../boost_1_54_0
macx:LIBS += -lboost_filesystem-mt -lboost_system-mt -larchive -lz
[I have static files of boost-filesystem, boost-system, lib archive, libz in the build directory]
How do I solve this issue?