I am trying to build a cpp program in codeblocks, that includes graphics.h file in it.
But I am getting a
warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
initgraph(&gd, &gm, "");
The warning is treated as errors: I have modified all the linker settings to include graphics.h in codeblocks.
initgraph(&gd, &gm, "");
Codeblocks shows:
=== Build failed: 1 error(s), 1 warning(s) (0 minute(s), 0 second(s)) ===