LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   graphics.h not working in geany (https://www.linuxquestions.org/questions/programming-9/graphics-h-not-working-in-geany-897822/)

arjunr6389@gmail.com 08-17-2011 07:28 AM

graphics.h not working in geany
 
whenever i try to compile programs that uses graphics.h header file i get the following error messeges

gcc -Wall -c "untitled.c" (in directory: /home/arjun)
Compilation failed.
untitled.c:2:21: fatal error: graphics.h: No such file or directory
compilation terminated.

if anyone know the answer to this problem plls do help me.i find it difficult to use turbo c in windows 7

amani 08-17-2011 09:12 AM

Does it work fine when compiling in a terminal?
Post relevant part of source.

Nylex 08-17-2011 09:30 AM

graphics.h is not part of the standard C library; I believe it's something found under Windows. If you're looking to make GUIs under Linux, then you'll want to look at a toolkit like GTK+. If you're interested in making text-based interfaces, then you probably want ncurses.

Tinkster 08-17-2011 02:15 PM

Moved: This thread is more suitable in <PROGRAMMING> and has been moved accordingly to help your thread/question get the exposure it deserves.

tushar05 10-13-2016 11:16 PM

Easiest Graphics.h Installation Guide
 
Well, you need to explicitly install graphics libraries to get graphics working in your C and C++ Programs in Linux Ubuntu.

The Libgraph package includes the graphics files. Find the Complete Installation Details in the link here:

Run Graphics.h in Ubuntu

The Libgraph is an old package for building graphical UI. Apart from Libgraph, there are so many other packages for graphics in Ubuntu as well such as OpenGL, GLUT and others.

NevemTeve 10-13-2016 11:29 PM

Long long time ago there was svgalib, but by now it either ceased to exist or lost its importance as using of X Window became common.
Maybe Java could be suggested for such drawing projects...

John VV 10-14-2016 11:40 PM

if you are still using software from 2011
you might want to upgrade to newer things

ardvark71 10-15-2016 03:37 AM

Hello and welcome to the forum :)

Just as a suggestion, you might want to change your username using the instructions at the top of the page here, lest your email inbox ends up with a boatload of SPAM in the very near future. You can find the "Contact Us" form here. ;)

Regards...

ondoho 10-16-2016 06:53 AM

Quote:

Originally Posted by ardvark71 (Post 5618265)
Hello and welcome to the forum :)
Just as a suggestion

Hello and welcome to the forum, ardvark71!
Just as a suggestion, you might want to look closer at
a) a thread's age
b) op's post count

combining those two, how likely do you think it is that they come back and actually read your religious propaganda.

TB0ne 10-16-2016 11:41 AM

Quote:

Originally Posted by ondoho (Post 5618708)
Hello and welcome to the forum, ardvark71!
Just as a suggestion, you might want to look closer at
a) a thread's age
b) op's post count

combining those two, how likely do you think it is that they come back and actually read your religious propaganda.

One of the best posts I've seen in a while....thank you! :)

patrick295767 10-17-2016 02:46 PM

So much post and no one could tell you what means <graphics.h> ;)

Man, your 9 posts are quite depressing.

Have you ever heard of graphics.h to answer the author of the thread?


edit: best answer on the list from tushar05

TB0ne 10-17-2016 02:53 PM

Quote:

Originally Posted by patrick295767 (Post 5619274)
So much post and no one could tell you what means <graphics.h> ;)

Man, your 9 posts are quite depressing.

Have you ever heard of graphics.h to answer the author of the thread?

edit: best answer on the list from tushar05

Did you happen to notice that the thread is FIVE YEARS OLD, and the OP hasn't been back for three years now, and never followed up/posted again??? Tushar05's answer is accurate...NOW..wasn't in 2011 when asked.

ntubski 10-17-2016 03:11 PM

Quote:

Originally Posted by TB0ne (Post 5619277)
Tushar05's answer is accurate...NOW..wasn't in 2011 when asked.

Not sure about that, looks like libgraph was developed around 2004-2006. http://download.savannah.gnu.org/releases/libgraph/

John VV 10-17-2016 03:36 PM

a good replacement that is very active today ( and not from the last decade )
--
CImg.h
--
http://cimg.eu/download.shtml

but this thread is from 2011

patrick295767 10-17-2016 04:00 PM

Quote:

Originally Posted by TB0ne (Post 5619277)
Did you happen to notice that the thread is FIVE YEARS OLD, and the OP hasn't been back for three years now, and never followed up/posted again??? Tushar05's answer is accurate...NOW..wasn't in 2011 when asked.

After 5 years and >10 posts, maybe, we could give him the solutions how to compile something with graphics.h, no?

Maybe 15-20 years ago, this was obvious... today, so why not telling the truth first? One could say how it was compiled in the past, and likely how to manage the compilation today. There are at least 3 or 4 methods to make revive the graphics.h.


All times are GMT -5. The time now is 03:55 PM.