-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GCC Fails with Unordered_map #42
Comments
Best that I can tell is that you're not specifying at minimum C++11 via compiler options |
What platform are you building for? I can't find a |
OK I finally found The only thing I can suggest is moving |
I spent a little time tonight trying my luck at tweaking configs to get this working.
Hilariously, in ... but why do we need PR inbound. |
… sad inside of Torque2D's existing linux platform. Bump Linux compile to -std=c++14 and optimization level from -O0 to -Og. Fix a bug in guiMLTextCtrl stemming from the changes to 128750d. Closes TorqueGameEngines#42.
… sad inside of Torque2D's existing linux platform. Bump Linux compile to -std=c++14 and optimization level from -O0 to -Og. Fix a bug in types.gcc.h which uses the wrong capitalization of the LINUX symbol. Fix a bug in guiMLTextCtrl stemming from the changes to 128750d. Closes TorqueGameEngines#42.
The addition of an unordered map in GuiTypes.cc in a recent check-in has lead to the Makefile to error out.
In file included from /usr/include/c++/12.1.0/unordered_map:47,
from ../../source/gui/guiTypes.h:63,
from ../../source/gui/guiControl.h:42,
from ../../source/2d/editorToy/EditorToySceneWindow.h:5,
from ../../source/2d/editorToy/EditorToyTool.h:6,
from ../../source/2d/editorToy/EditorToyTool.cc:4:
/usr/include/c++/12.1.0/bits/unordered_map.h:40:37: error: ‘_Hashtable_traits’ in namespace ‘std::__detail’ does not name a template type
40 | using __umap_traits = __detail::_Hashtable_traits<_Cache, false, true>;
| ^~~~~~~~~~~~~~~~~
compilation terminated due to -Wfatal-errors.
make: *** [Torque2D.mk:132: Debug/2d/editorToy/EditorToyTool.cc.o] Error 1
The text was updated successfully, but these errors were encountered: