using graphics in linux-ubuntu c++

Oct 9, 2010 at 10:28am
i cant even find its header file anywhere?!?
i've used it in turbo c++..header file being graphics.h....n have written many programs using it too..
i just wanna know the syntaxes..and way of implementing graphics in ubuntu c++
Oct 9, 2010 at 11:21am
The BGI graphics library is an old, DOS system graphics library. It only works on PC systems running DOS or Windows.

You might want to check out Allegro, which does very much what you want and is cross-platform to boot (meaning it will work on your Ubuntu).
http://alleg.sourceforge.net/

Good luck!
Oct 11, 2010 at 6:58am
thanks but i live in a hostel and here i'm not able to download this thing
i'm trying to use the EzWindows.....can i get any data about it smwhere on the net?
Oct 12, 2010 at 4:42pm
plz sm1 help with EzWindows!?!?!?!?!
Oct 12, 2010 at 7:23pm
Unless you want to write your own BGI graphics library, you must download and install something. If you are using Ubuntu at your hostel, this is OK so long as you have space for it in your user directory. The other option, of course, is to ask the sysadmin to install it for you.

You (or your sysadmin) need to install libgraph, which is a wrapper over SDL with the same interface as the old Borland BGI graphics library.
http://eternalthinker.blogspot.com/2010/09/how-to-use-graphicsh-in-ubuntu.html
http://itsanimesh.com/2009/01/08/c_graphics_in_linux/

If you put it in your own user directory, you must tell the compiler where to look for the library include and lib files. You'll need to set your LIBRARY_PATH and CPATH environment variables. (You can modify this with the ~/.bashrc or ~/.profile files in your home directory.)
http://itsanimesh.com/2009/01/08/c_graphics_in_linux/

Good luck!
Oct 23, 2010 at 5:54am
thanks
Topic archived. No new replies allowed.