LINUX.ORG.RU

История изменений

Исправление Xintrea, (текущая версия) :

В любом случае, я не понимаю, какие такие стандарты из c++23 так необходимы были для написания этой говноигры? Причем код создавался в самом начале 2024 года. Раньше 23-го года игра просто не могла появиться, потому что уровень технологий был недостаточен, чтобы написать код этой сложнейшей разработки?

$ python3 "script/build-game-release.py"
generated version: v0.114.3.1
scons -j4 -Q debug=0 -Q script=src/game/SConscript
Execute script: src/game/SConscript
System: Linux x64
Build mode: release
Compiler: g++
gcc -o thirdparty/include/zip/zip.o -c -DLINUX -DNDEBUG -Isrc/game -Isrc -Ithirdparty/include thirdparty/include/zip/zip.c
g++ -o src/util/error.o -c -std=c++23 -Wall -Wfatal-errors -finput-charset=UTF-8 -fextended-identifiers -fdiagnostics-color=always -flto=auto -Ofast -mtune=generic -march=x86-64 -m64 -fopenmp -DLINUX -DNDEBUG -Isrc/game -Isrc -Ithirdparty/include src/util/error.cpp
g++: error: unrecognized command-line option '-std=c++23'; did you mean '-std=c++03'?
g++ -o src/util/hpw-util.o -c -std=c++23 -Wall -Wfatal-errors -finput-charset=UTF-8 -fextended-identifiers -fdiagnostics-color=always -flto=auto -Ofast -mtune=generic -march=x86-64 -m64 -fopenmp -DLINUX -DNDEBUG -Isrc/game -Isrc -Ithirdparty/include src/util/hpw-util.cpp
g++: error: unrecognized command-line option '-std=c++23'; did you mean '-std=c++03'?
scons: *** [src/util/error.o] Error 1
g++ -o src/util/mempool.o -c -std=c++23 -Wall -Wfatal-errors -finput-charset=UTF-8 -fextended-identifiers -fdiagnostics-color=always -flto=auto -Ofast -mtune=generic -march=x86-64 -m64 -fopenmp -DLINUX -DNDEBUG -Isrc/game -Isrc -Ithirdparty/include src/util/mempool.cpp
scons: *** [src/util/hpw-util.o] Error 1
g++: error: unrecognized command-line option '-std=c++23'; did you mean '-std=c++03'?
scons: *** [src/util/mempool.o] Error 1
Traceback (most recent call last):
  File "/home/xi/work/develop/cpp/HPW-Demo-Bullet-Game/script/build-game-release.py", line 8, in <module>
    helper.exec_cmd(f'scons -j4 -Q debug={is_debug} -Q script={script}')
  File "/home/xi/work/develop/cpp/HPW-Demo-Bullet-Game/script/helper.py", line 29, in exec_cmd
    subprocess.run (cmd.split(), check=True)
  File "/usr/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['scons', '-j4', '-Q', 'debug=0', '-Q', 'script=src/game/SConscript']' returned non-zero exit status 2.

Исходная версия Xintrea, :

В любом случае, я не понимаю, какие такие стандарты из c++23 так необходимы были для написания этой говноигры?

$ python3 "script/build-game-release.py"
generated version: v0.114.3.1
scons -j4 -Q debug=0 -Q script=src/game/SConscript
Execute script: src/game/SConscript
System: Linux x64
Build mode: release
Compiler: g++
gcc -o thirdparty/include/zip/zip.o -c -DLINUX -DNDEBUG -Isrc/game -Isrc -Ithirdparty/include thirdparty/include/zip/zip.c
g++ -o src/util/error.o -c -std=c++23 -Wall -Wfatal-errors -finput-charset=UTF-8 -fextended-identifiers -fdiagnostics-color=always -flto=auto -Ofast -mtune=generic -march=x86-64 -m64 -fopenmp -DLINUX -DNDEBUG -Isrc/game -Isrc -Ithirdparty/include src/util/error.cpp
g++: error: unrecognized command-line option '-std=c++23'; did you mean '-std=c++03'?
g++ -o src/util/hpw-util.o -c -std=c++23 -Wall -Wfatal-errors -finput-charset=UTF-8 -fextended-identifiers -fdiagnostics-color=always -flto=auto -Ofast -mtune=generic -march=x86-64 -m64 -fopenmp -DLINUX -DNDEBUG -Isrc/game -Isrc -Ithirdparty/include src/util/hpw-util.cpp
g++: error: unrecognized command-line option '-std=c++23'; did you mean '-std=c++03'?
scons: *** [src/util/error.o] Error 1
g++ -o src/util/mempool.o -c -std=c++23 -Wall -Wfatal-errors -finput-charset=UTF-8 -fextended-identifiers -fdiagnostics-color=always -flto=auto -Ofast -mtune=generic -march=x86-64 -m64 -fopenmp -DLINUX -DNDEBUG -Isrc/game -Isrc -Ithirdparty/include src/util/mempool.cpp
scons: *** [src/util/hpw-util.o] Error 1
g++: error: unrecognized command-line option '-std=c++23'; did you mean '-std=c++03'?
scons: *** [src/util/mempool.o] Error 1
Traceback (most recent call last):
  File "/home/xi/work/develop/cpp/HPW-Demo-Bullet-Game/script/build-game-release.py", line 8, in <module>
    helper.exec_cmd(f'scons -j4 -Q debug={is_debug} -Q script={script}')
  File "/home/xi/work/develop/cpp/HPW-Demo-Bullet-Game/script/helper.py", line 29, in exec_cmd
    subprocess.run (cmd.split(), check=True)
  File "/usr/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['scons', '-j4', '-Q', 'debug=0', '-Q', 'script=src/game/SConscript']' returned non-zero exit status 2.