In file included from /Users/thomasgeissl/programming/of/openFrameworks/apps/myApps/ofQtAppTest10/src/ofApp.cpp:1:
In file included from /Users/thomasgeissl/programming/of/openFrameworks/apps/myApps/ofQtAppTest10/src/ofApp.h:3:
In file included from /Users/thomasgeissl/programming/of/openFrameworks/libs/openFrameworks/ofMain.h:5:
/Users/thomasgeissl/programming/of/openFrameworks/libs/openFrameworks/utils/ofConstants.h:393:10: fatal error: 'unordered_map' file not found
#include <unordered_map>
^
1 error generated.
Process failed with exit code 1.
The following products could not be built for configuration qtc_Desktop__8b68ce34-debug:
ofQtAppTest10
openFrameworks
Error while building/deploying project ofQtAppTest10 (kit: Desktop Clang)
When executing step "Qbs Build"
15:10:41: Elapsed time: 00:08.
Looks like c++11 there is no c++11 support, but the compile command looks fine for me.
/usr/bin/clang++ -arch x86_64 -g -O0 -pipe -fvisibility=default -Wno-unused-parameter -std=c++11 -fPIC -DDEBUG -DGCC_HAS_REGEX -DOF_USING_GTK -DOF_USING_MPG123 -I/Users/thomasgeissl/programming/of/openFrameworks/libs/openFrameworks
If I build a qt widgets application and #include <unordered_map>
I get the same error.
Adding CONFIG += c++11 to the .pro file solves this.
I am not familiar with qbs.
I tried adding cpp.cxxLanguageVersion: "c++11"
and cpp.cppFlags: "-std=c++11"
. But both solutions gave me the same error.