Closed define-private-public closed 2 weeks ago
I'm trying to build this project with BUILD_BENCHMARKS=ON. I'm using GCC 14 with Ubuntu 24.04 LTS. This is the exact compilation output:
BUILD_BENCHMARKS=ON
[ 89%] Building C object benchmark/CMakeFiles/benchmark.dir/main.c.o cd /home/ben/Projects/box2d/build_gcc/benchmark && /usr/bin/gcc-14 -DENKITS_TASK_PRIORITIES_NUM=3 -I/home/ben/Projects/box2d/src/../include -I/home/ben/Projects/box2d/build_gcc/src -I/home/ben/Projects/box2d/build_gcc/_deps/enkits-src/src -I/home/ben/Projects/box2d/extern/simde -O3 -DNDEBUG -std=c17 -Werror -MD -MT benchmark/CMakeFiles/benchmark.dir/main.c.o -MF CMakeFiles/benchmark.dir/main.c.o.d -o CMakeFiles/benchmark.dir/main.c.o -c /home/ben/Projects/box2d/benchmark/main.c /home/ben/Projects/box2d/benchmark/main.c: In function ‘GetNumberOfCores’: /home/ben/Projects/box2d/benchmark/main.c:65:14: error: expected expression before ‘return’ 65 | (int)return sysconf( _SC_NPROCESSORS_ONLN ); | ^~~~~~
I checked out tag v3.0.0 and tried building off of that.
v3.0.0
I'm trying to build this project with
BUILD_BENCHMARKS=ON
. I'm using GCC 14 with Ubuntu 24.04 LTS. This is the exact compilation output:I checked out tag
v3.0.0
and tried building off of that.