To avoid the warnings add this line on top of your source file:
# pragma GCC diagnostic ignored "-Wwrite-strings"
The
initgraph
call should probably be changed to pass
NULL
instead of the string parameter "NULL":
initgraph(&gd,&gm,NULL);
Finally to the bad news. It seems that the Linux porting of the BGI (Borland Graphics Interface) does not support text styles. The header file
graphics.h includes another header file
grtext.h which provides definitions for
outtextxy()
but not for
settextstyle()
and constants related to that function like
HORIZ_DIR
.
You might think about using other graphic interfaces than a Linux port of an outdated graphics driver interface that was initially provided with Turbo C/C++ for MS-DOS and Windows 95.