nickg / lander

Lunar Lander clone using OpenGL
http://www.doof.me.uk/lunar-lander/
GNU General Public License v3.0
8 stars 1 forks source link

Not compiling due to missing include file #5

Open Rmano opened 4 years ago

Rmano commented 4 years ago

Hi,

I can't compile the game --- I have this error:

[romano:~/tmp/lander-0.7.2/build] 2s 1 % c++  -Ilander@exe -I. -I.. -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/SDL2 -I/usr/include/libdrm -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 '-DGETTEXT_PACKAGE="lander"' -D_REENTRANT -MD -MQ 'lander@exe/src_HighScores.cpp.o' -MF 'lander@exe/src_HighScores.cpp.o.d' -o 'lander@exe/src_HighScores.cpp.o' -c ../src/HighScores.cpp
../src/HighScores.cpp:12:10: fatal error: filesystem: No such file or directory
 #include <filesystem>
          ^~~~~~~~~~~~
compilation terminated.

...it seems the same on Travis CI. Any hints to be able to compile it? Thanks!

nickg commented 4 years ago

Maybe you have an older version of GCC that doesn't have full C++17 support? The CI is fixed now.

Rmano commented 4 years ago

Could be...

θ64° [romano:~] % gcc --version
gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0