Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save as2902b/dd7bbc74b0d78585bf30 to your computer and use it in GitHub Desktop.
Save as2902b/dd7bbc74b0d78585bf30 to your computer and use it in GitHub Desktop.
bin/eolian/main.c:292:4: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (int opt; (opt = getopt_long(argc, argv, "vho:I:", opts, NULL)) != -1; )
^
bin/eolian/main.c:292:4: note: use option -std=c99 or -std=gnu99 to compile your code
make[2]: *** [bin/eolian/bin_eolian_eolian_gen-main.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CC lib/eina/lib_eina_libeina_la-eina_accessor.lo
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Making install in src
CC bin/eolian/bin_eolian_eolian_gen-main.o
bin/eolian/main.c: In function ‘main’:
bin/eolian/main.c:292:4: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (int opt; (opt = getopt_long(argc, argv, "vho:I:", opts, NULL)) != -1; )
^
bin/eolian/main.c:292:4: note: use option -std=c99 or -std=gnu99 to compile your code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment