Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums
hey everyone,
i'm trying compile simple code on rpi3 using geany. code written using code::blocks on windows , working without problem. errors i'm getting are:
i'm trying compile simple code on rpi3 using geany. code written using code::blocks on windows , working without problem. errors i'm getting are:
,untitled.c:33:5: error: ‘for’ loop initial declarations allowed in c99 or c11 mode
understand code not problem way i'm compiling it. can give me advice?untitled.c:33:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 compile code
you need add 1 of suggested options compile command configured in geany,
in menu.. build -> set build commands add "-std=c99" after "gcc" in compile , build boxes.
(i'm looking on mint pc expect version on pi same).
petero
in menu.. build -> set build commands add "-std=c99" after "gcc" in compile , build boxes.
(i'm looking on mint pc expect version on pi same).
petero
raspberrypi
Comments
Post a Comment