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

Compilation terminates due to -Wfatal-errors #24

Open
cdyrssen opened this issue Oct 22, 2020 · 0 comments
Open

Compilation terminates due to -Wfatal-errors #24

cdyrssen opened this issue Oct 22, 2020 · 0 comments

Comments

@cdyrssen
Copy link

Hello,

I am interested in running this project and learning from it, but I am having issues getting it to compile. I was able to get the dependencies installed but I get the following output when I attempt to compile.

make all
g++ -std=c++17 source/territory.cpp source/include/imgui/imgui.cpp source/include/imgui/imgui_demo.cpp source/include/imgui/imgui_draw.cpp source/include/imgui/imgui_widgets.cpp source/include/imgui/imgui_impl_opengl3.cpp source/include/imgui/imgui_impl_sdl.cpp -Wfatal-errors -O -I/usr/local/include -L/usr/local/lib -lX11 -lpthread -lSDL2 -lnoise -lSDL2_image -lSDL2_mixer -lSDL2_ttf -lGL -lGLEW -lboost_serialization -lboost_system -lboost_filesystem -o territory
In file included from /usr/local/include/GL/glew.h:1205,
                 from source/territory.h:13,
                 from source/territory.cpp:1:
/usr/include/w32api/GL/glu.h:68:78: error: expected ')' before '*' token
   68 | void APIENTRY gluQuadricCallback(GLUquadric *qobj,GLenum which,void (CALLBACK *fn)());
      |                                                                     ~        ^~
      |                                                                              )
compilation terminated due to -Wfatal-errors.
In file included from /usr/local/include/GL/glew.h:1205,
                 from source/include/imgui/imgui_impl_opengl3.cpp:101:
/usr/include/w32api/GL/glu.h:68:78: error: expected ')' before '*' token
   68 | void APIENTRY gluQuadricCallback(GLUquadric *qobj,GLenum which,void (CALLBACK *fn)());
      |                                                                     ~        ^~
      |                                                                              )
compilation terminated due to -Wfatal-errors.
make: *** [makefile:8: all] Error 1
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

1 participant