ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
In our department we did c programmes in linux ,in gcc in previous semester.In this semester we have graphics programming in c.
We use turbo c in xp in our lab to do graphics programming .
can any one help me to do the graphics programing in gcc.............
we use rhel5 in our lab...
Turbo C has a built in graphics library (you're talking about graphics.h, right?), however it's not part of the C language. On linux you'll have to use a separate library.
The most similar one to Turbo C's library is svgalib so learning it won't take long. However this library is a bit restricted to use under linux, for instance it works only on the console (not X) and it requires root permissions. If you prefer something more general I would recommend GGI or SDL.
What library you choose in the end has little or nothing to do with gcc.
In our department we did c programmes in linux ,in gcc in previous semester.In this semester we have graphics programming in c.
We use turbo c in xp in our lab to do graphics programming .
can any one help me to do the graphics programing in gcc.............
we use rhel5 in our lab...
Which doesn't mean you are already using it in your projects. Besides you didn't tell anything about SDL in your first post.
Either use SDL surfaces with per-pixel operations in DOS style, or OpenGL for higher-level drawing (lines, polygons, etc).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.