Skip to content

Compilation terminates due to -Wfatal-errors #24

@cdyrssen

Description

@cdyrssen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions