Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.