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++) {
^
infradig commented
For now add OPT=-std=gnu99 to make command
I assume it's an old Ubuntu system?
…On Sat, 10 Feb 2024, 03:37 UWN, ***@***.***> wrote:
...
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++) {
^
—
Reply to this email directly, view it on GitHub
<#496>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFNKSETJI57DUOE5A7447WLYSZNHBAVCNFSM6AAAAABDB2ORJSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEZDONJXHE2DCMQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
UWN commented
Right, 14.04.6. Some time ago, there was the same problem.