Garux / netradiant-custom

The open-source, cross-platform level editor for id Tech based games.
https://garux.github.io/NRC/
Other
334 stars 59 forks source link

Not compiling on Manjaro Linux #105

Closed eGax closed 2 years ago

eGax commented 2 years ago

The current main branch doesn't build. It complains about #include <vector>

All required libraries have been found!

g++ tools/quake3/common/qimagelib.cpp   -MMD -W -Wall -Wcast-align -Wcast-qual -Wno-unused-parameter -fno-strict-aliasing -O3 -fPIC -std=c++17 -Wreorder -fno-exceptions -fno-rtti -I/usr/include/libxml2  -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/sysprof-4 -pthread  -I/usr/include/libpng16   -Itools/quake3/common -Ilibs -Iinclude -Ilibs/assimp/include -DNDEBUG -DPOSIX -DXWINDOWS -DRADIANT_VERSION="\"1.5.0n-git-eed75b00\"" -DRADIANT_MAJOR_VERSION="\"5\"" -DRADIANT_MINOR_VERSION="\"0\"" -DRADIANT_ABOUTMSG="\"Custom build\"" -DQ3MAP_VERSION="\"2.5.17n-git-eed75b00\"" -DRADIANT_EXECUTABLE="\"x86_64\""  -c -o tools/quake3/common/qimagelib.o
In file included from tools/quake3/common/qimagelib.cpp:28:
tools/quake3/common/vfs.h:41:6: error: ‘vector’ in namespace ‘std’ does not name a template type
   41 | std::vector<CopiedString> vfsListShaderFiles( const char *shaderPath );
      |      ^~~~~~
tools/quake3/common/vfs.h:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
  +++ |+#include <vector>
    1 | /*
tools/quake3/common/vfs.h:45:13: error: ‘vector’ in namespace ‘std’ does not name a template type
   45 | extern std::vector<CopiedString> g_strForbiddenDirs;
      |             ^~~~~~
tools/quake3/common/vfs.h:45:8: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
   45 | extern std::vector<CopiedString> g_strForbiddenDirs;
      |        ^~~
make: *** [Makefile:507: tools/quake3/common/qimagelib.o] Error 1
Garux commented 2 years ago

Fresh GCC got more demanding it looks like. Thanks to @Aciz for fixing this #103

eGax commented 2 years ago

Thank you sir!