On Thu, Nov 26, 2020 at 03:12:14PM +0800, Xingxing Su wrote:
> CFLAGS add -std=gnu99.
>
> Fllowing build error:
>
> test_core.c: In function ‘test_cgcore_destroy’:
> test_core.c:87:2: error: ‘for’ loop initial declarations are only
> allowed in C99 mode
> for (int i = 0; i < 10; i++) {
> ^
>
CFLAGS add -std=gnu99.
Fllowing build error:
test_core.c: In function ‘test_cgcore_destroy’:
test_core.c:87:2: error: ‘for’ loop initial declarations are only
allowed in C99 mode
for (int i = 0; i < 10; i++) {
^
test_core.c:87:2: note: use option -std=c99 or -std=gnu99 to compile
your code
S
2 matches
Mail list logo