Skip to content
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

error: ‘deque’ in namespace ‘std’ does not name a template type #1

Open
clort81 opened this issue Dec 28, 2021 · 2 comments
Open

Comments

@clort81
Copy link

clort81 commented Dec 28, 2021

g++ -std=c++17 source/erosion.cpp source/include/render/imgui/imgui.cpp source/include/render/imgui/imgui_demo.cpp source/include/render/imgui/imgui_draw.cpp source/include/render/imgui/imgui_widgets.cpp source/include/render/imgui/imgui_impl_opengl3.cpp source/include/render/imgui/imgui_impl_sdl.cpp -Wfatal-errors -O3 -I/usr/local/include -L/usr/local/lib -lX11 -lpthread -lSDL2 -lnoise -lSDL2_image -lSDL2_ttf -lGL -lGLEW -lboost_system -lboost_filesystem -o erosion
In file included from source/include/render/event.cpp:5,
from source/erosion.h:39,
from source/erosion.cpp:1:
source/include/render/event.h:14:8: error: ‘deque’ in namespace ‘std’ does not name a template type
14 | std::deque<SDL_Event*> inputs; //General Key Inputs
| ^~~~~
compilation terminated due to -Wfatal-errors.

I should have all dependencies and used gcc-11. Any ideas what the problem might be?

@clort81
Copy link
Author

clort81 commented Jul 9, 2022

Trying g++ -std=c++11 didn't help...

@bgailleton
Copy link

adding #include <deque> in erosion.h solved it for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants