Use of graphics.h in gcc

Asked by Nikhil Gangarde

When I use graphics.h header file inmy code, the GCC compiler pops a error. I've tried to install libgraph-1.02 and i've also installed other necessary packages. But it doesn't help. I still get an error. What do I do for successful compilation of gcc programs containing graphics.h header files.

Question information

English Edit question
Ubuntu gcc-defaults Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Ubfan (ubfan1) said :

graphics.h is another Dos/windows header, not a Linux file. If you are in the process of learning C on Linux, I'd suggest starting with a Unix program instead of a Dos/Windows one. If you are trying to port a program, I recall something called twin from Willows which I have used a looong time ago to compile Dos programs on Linux, but a quick google showed that the site is now a real-estate company. Maybe you could install a Dos/Windows compiler under Wine and get all the necessary headers/libraries

Can you help with this problem?

Provide an answer of your own, or ask Nikhil Gangarde for more information if necessary.

To post a message you must log in.