View Full Version : C Graphics in gcc

January 8th, 2010, 02:33 PM
Hi, I am not very familiar with GCC. Can you please tell me how to do graphics programs in GCC like draw circles,ellipse and all that stuff ?

Is there any equivalent header file of "Graphics.h" of TurboC in GCC?


January 8th, 2010, 02:41 PM
Have you done any C programming at all? Most people would probably use a framework such as SDL to do graphics.

January 8th, 2010, 02:43 PM
Cairo (http://www.cairographics.org/documentation/) may be what you are looking for.

January 8th, 2010, 02:46 PM
thanks for telling abt cairo

January 8th, 2010, 03:28 PM
In short, there is no standard for graphics in C, and nothing gcc-specific, either. So you're looking at add-on libraries. SDL is one of the simplest to work with, although lines, circles, etc. aren't its strong suit (it's focused on blitting bitmaps). I've heard good things about Cairo, but I haven't tried it.

January 9th, 2010, 12:26 PM
this one's C++, rather than C, but look at