Problem scenario
You try to compile a program with “gcc nameofprog.cc”. You get this output:
“warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]”
What do you do to compile your program?
Solution
The program may still compile and run. Look for the a.out file to be created. It may be a working C program. Just run it like this: ./a.out
To get rid of the error,
…