Open your terminal and install the required development tools and SDL libraries: How do I use graphics.h in Ubuntu?
This method installs the libgraph library from source, allowing you to use graphics.h in standard GCC/G++ workflows. graphics.h linux download
The library is not a standard C/C++ library and is not natively supported by modern Linux compilers like GCC. To use it on Linux, you must download and install a wrapper library—most commonly libgraph —which implements the Turbo C graphics API using SDL . Method 1: Installing libgraph (The Standard Way) Open your terminal and install the required development