On Fri, Sep 25, 2009 at 11:20 AM, rmeckota <[email protected]> wrote:

> I am trying to run graphics program in gcc on linux platform i m using red 
> hat linux 9.0
> but when i compile the program it is giving message missing graphics.h header 
> file though the program is running completely fine on turboc++ in windows xp
> early help is appreciated

graphics.h is specific to Turbo C++ compiler (which you shouldn't be
using anyway, it's very old) and won't work under other compilers, and
certainly not on Linux. I will also point out that Red Hat 9 is a very
old version of Red Hat Linux (at least 5 years old now). You should
move to something a bit more up-to-date like Fedora or Ubuntu.

For graphics on Linux, there are many libraries to choose from. You
should choose one that is cross-platform, like OpenGL or SDL, so you
can develop on both Linux and Windows (or Mac). Note that using these
kind of graphics libraries requires using the respective GUI
environments of those operating systems and learning how to program in
those GUI environments. The old BGI graphics you are using with Turbo
C++ is for MS-DOS and should not be used. Cross-platform toolkits like
GTK+, fltk, Qt3/4 or wxWindows is recommended -- you don't want to
start off trying to learn the low-level Windows or X11 APIs unless you
are a masochist.

I suggest some Google research. "C++ Graphics on Linux" is a good
start for searching.

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
    If I were to divulge it, it would overturn the world."
               -- Jelaleddin Rumi

Reply via email to