Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am new to Ubuntu and I need to write some graphics programs in C which uses the header file graphics.h , but I am not being able to run any of my code without that header file, which is not present in any package by default. I can't understand what to do to fix this problem.

I tried a lot of things suggested by some sites like this but to no avail. There were errors in the process.

I need to finish my project. Please help as soon as possible.

share|improve this question

graphics.h header file is not included in any package in ubuntu because it is NOT a part of the Standard C library

you can make use of the non-standard ncurses library if you want to make use of the graphics function.

Hope that helps

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.