You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kjotte@daedalus:~/git/redsea$ gcc -o rtl_redsea -lm rtl_redsea.c
rtl_redsea.c: In function ‘main’:
rtl_redsea.c:91:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (int iq=0;iq<=1;iq++) {
^
rtl_redsea.c:91:5: note: use option -std=c99 or -std=gnu99 to compile your code
You added -std=gnu99, but you didn't move the "-lm" parameter to the end of the command as nivex did. If it's not at the end i get linker errors on my linux box.
Great tool btw.
Following instructions in readme:
Code compiles correctly with command:
kjotte@daedalus:~/git/redsea$ gcc -std=gnu99 -o rtl_redsea rtl_redsea.c -lm
The text was updated successfully, but these errors were encountered: