LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-17-2011, 07:28 AM   #1
arjunr6389@gmail.com
LQ Newbie
 
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
Arrow 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
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 08-17-2011, 09:12 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Does it work fine when compiling in a terminal?
Post relevant part of source.
 
Old 08-17-2011, 09:30 AM   #3
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
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.

Last edited by Nylex; 08-17-2011 at 09:32 AM.
 
Old 08-17-2011, 02:15 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Moved: This thread is more suitable in <PROGRAMMING> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 10-13-2016, 11:16 PM   #5
tushar05
LQ Newbie
 
Registered: Oct 2016
Posts: 2

Rep: Reputation: Disabled
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.
 
Old 10-13-2016, 11:29 PM   #6
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,163

Rep: Reputation: 1534Reputation: 1534Reputation: 1534Reputation: 1534Reputation: 1534Reputation: 1534Reputation: 1534Reputation: 1534Reputation: 1534Reputation: 1534Reputation: 1534
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...
 
Old 10-14-2016, 11:40 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,517

Rep: Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619
if you are still using software from 2011
you might want to upgrade to newer things
 
Old 10-15-2016, 03:37 AM   #8
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, Windows Vista
Posts: 6,277
Blog Entries: 3

Rep: Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841Reputation: 841
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...
 
Old 10-16-2016, 06:53 AM   #9
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,068
Blog Entries: 10

Rep: Reputation: 5122Reputation: 5122Reputation: 5122Reputation: 5122Reputation: 5122Reputation: 5122Reputation: 5122Reputation: 5122Reputation: 5122Reputation: 5122Reputation: 5122
Quote:
Originally Posted by ardvark71 View Post
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.
 
2 members found this post helpful.
Old 10-16-2016, 11:41 AM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,708

Rep: Reputation: 6940Reputation: 6940Reputation: 6940Reputation: 6940Reputation: 6940Reputation: 6940Reputation: 6940Reputation: 6940Reputation: 6940Reputation: 6940Reputation: 6940
Quote:
Originally Posted by ondoho View Post
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!
 
Old 10-17-2016, 02:46 PM   #11
patrick295767
Member
 
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 660

Rep: Reputation: 137Reputation: 137
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

Last edited by patrick295767; 10-17-2016 at 02:47 PM.
 
Old 10-17-2016, 02:53 PM   #12
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,708

Rep: Reputation: 6940Reputation: 6940Reputation: 6940Reputation: 6940Reputation: 6940Reputation: 6940Reputation: 6940Reputation: 6940Reputation: 6940Reputation: 6940Reputation: 6940
Quote:
Originally Posted by patrick295767 View Post
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.
 
Old 10-17-2016, 03:11 PM   #13
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,592

Rep: Reputation: 1931Reputation: 1931Reputation: 1931Reputation: 1931Reputation: 1931Reputation: 1931Reputation: 1931Reputation: 1931Reputation: 1931Reputation: 1931Reputation: 1931
Quote:
Originally Posted by TB0ne View Post
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/
 
Old 10-17-2016, 03:36 PM   #14
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,517

Rep: Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619
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
 
Old 10-17-2016, 04:00 PM   #15
patrick295767
Member
 
Registered: Feb 2006
Distribution: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 660

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by TB0ne View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Geany HTML Autocomplete! solo9300 Linux - Newbie 1 10-02-2009 07:10 PM
Sound and Graphics not working in Intel D101GGC with ATI graphics and Realtek audio sanu1 Linux - Hardware 2 12-28-2008 07:29 PM
Help for C++ programming using Geany sonypaulpeter Programming 2 12-13-2008 12:25 PM
geany not finding libraries vdogvictor Programming 3 10-07-2008 10:29 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration