3 ms·
> gcc: error: unrecognized command-line option ‘-fwritable-strings’; did you mean ‘-Wwrite-strings’? this doesn't work with gcc 4 > GCC no longer accepts the
by tetris11 4y ago
> gcc: error: unrecognized command-line option ‘-fwritable-strings’; did you mean ‘-Wwrite-strings’?
this doesn't work with gcc 4
> GCC no longer accepts the -fwritable-strings option. Use named character arrays when you need a writable string.
https://gcc.gnu.org/gcc-4.0/changes.html https://gcc.gnu.org/gcc-4.0/changes.html
- tromp 4y agoClang still accepts -fwritable-strings. For gcc, writable strings can be avoided by making the top line one character longer: char M[3],A,Z,E=40,J[40],T[40];main(C){for(*J=A=scanf("%d",&C);