trealla-prolog/trealla

Compilation error

Closed this issue · 2 comments

UWN commented
...
cc -Isrc -I/usr/local/include -DVERSION='"v2.38.6"' -O3  -D_GNU_SOURCE -Wall -Wextra -Wno-deprecated-declarations -Wno-unused-parameter -Wno-unused-function -Wno-unused-variable -Wno-unused-but-set-variable -DUSE_FFI=1 -I/usr/local/opt/libffi/include -DUSE_OPENSSL=1 -I/usr/local/opt/openssl/include -DUSE_THREADS=1 -pthread   -c -o library/builtins.o library/builtins.c
In file included from src/heap.h:3:0,
                 from src/bif_csv.c:4:
src/internal.h: In function ‘copy_cells_by_ref’:
src/internal.h:937:2: error: ‘for’ loop initial declarations are only allowed in C99 mode
  for (pl_idx i = 0; i < nbr_cells; i++, src++) {
  ^
UWN commented

Right, 14.04.6. Some time ago, there was the same problem.