Created
November 11, 2015 12:39
-
-
Save zkessin/d7ef746e42e1f41c68c6 to your computer and use it in GitHub Desktop.
Snarl Compile errors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/root/snarl/_build/default/lib/mmath/c_src/bin_nif.c:36:3: error: ‘for’ loop initial declarations are only allowed in C99 mode | |
for (unsigned i = 0 ; i < count; i++) { | |
^ | |
/root/snarl/_build/default/lib/mmath/c_src/bin_nif.c:36:3: note: use option -std=c99 or -std=gnu99 to compile your code | |
/root/snarl/_build/default/lib/mmath/c_src/bin_nif.c:38:7: warning: implicit declaration of function ‘htonll’ [-Wimplicit-function-declaration] | |
last = FROM_DDB(vs[i]); | |
^ | |
/root/snarl/_build/default/lib/mmath/c_src/bin_nif.c: In function ‘from_list’: | |
/root/snarl/_build/default/lib/mmath/c_src/bin_nif.c:71:3: error: ‘for’ loop initial declarations are only allowed in C99 mode | |
for (int i = 0; i < count; i++) { | |
^ | |
/root/snarl/_build/default/lib/mmath/c_src/bin_nif.c:76:5: warning: implicit declaration of function ‘ntohll’ [-Wimplicit-function-declaration] | |
target[i] = TO_DDB(v); | |
^ | |
/root/snarl/_build/default/lib/mmath/c_src/bin_nif.c: In function ‘realize’: | |
/root/snarl/_build/default/lib/mmath/c_src/bin_nif.c:100:3: error: ‘for’ loop initial declarations are only allowed in C99 mode | |
for (int i = 0; i < count; i++) { | |
^ | |
/root/snarl/_build/default/lib/mmath/c_src/bin_nif.c:104:9: error: ‘for’ loop initial declarations are only allowed in C99 mode | |
for (int j = 0; j < i; j++) { | |
^ | |
/root/snarl/_build/default/lib/mmath/c_src/bin_nif.c: At top level: | |
/root/snarl/_build/default/lib/mmath/c_src/bin_nif.c:115:1: warning: return type defaults to ‘int’ [-Wreturn-type] | |
derealize(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) | |
^ | |
/root/snarl/_build/default/lib/mmath/c_src/bin_nif.c: In function ‘derealize’: | |
/root/snarl/_build/default/lib/mmath/c_src/bin_nif.c:131:3: error: ‘for’ loop initial declarations are only allowed in C99 mode | |
for (int i = 0; i < count; i++) { | |
^ | |
/root/snarl/_build/default/lib/mmath/c_src/bin_nif.c: At top level: | |
/root/snarl/_build/default/lib/mmath/c_src/bin_nif.c:143:3: warning: initialization from incompatible pointer type [enabled by default] | |
{"derealize", 1, derealize} | |
^ | |
/root/snarl/_build/default/lib/mmath/c_src/bin_nif.c:143:3: warning: (near initialization for ‘nif_funcs[3].fptr’) [enabled by default] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment