LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices



Reply
 
Search this Thread
Old 03-13-2010, 09:32 AM   #1
chandini
LQ Newbie
 
Registered: Jan 2009
Distribution: openSuSE 10.2
Posts: 9

Rep: Reputation: 0
Graphics in C


we use Turbo C in windows. which allows graphics.
But in linux Graphics.h is not loading . I am getting errors.
How to get "C" graphics in Linux environment.
 
Old 03-13-2010, 09:36 AM   #2
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
see this post ! Graphics.h in LINUX
 
1 members found this post helpful.
Old 03-13-2010, 09:41 AM   #3
chandini
LQ Newbie
 
Registered: Jan 2009
Distribution: openSuSE 10.2
Posts: 9

Original Poster
Rep: Reputation: 0
I'll try that , Thank you Raju!
 
Old 03-13-2010, 09:49 AM   #4
chandini
LQ Newbie
 
Registered: Jan 2009
Distribution: openSuSE 10.2
Posts: 9

Original Poster
Rep: Reputation: 0
I followed that procedure in the blog , I got this error !
Quote:
chandini@chandini:~> gcc test.c -o test.out -lgraph
test.c:2:22: error: graphics.h: No such file or directory
test.c: In function ‘main’:
test.c:6: error: ‘DETECT’ undeclared (first use in this function)
test.c:6: error: (Each undeclared identifier is reported only once
test.c:6: error: for each function it appears in.)
test.c:6: error: ‘VGAMAX’ undeclared (first use in this function)
test.c:7: error: ‘amp’ undeclared (first use in this function)
test.c:7: error: expected ‘)’ before ‘;’ token
again no graphics.h
 
Old 03-13-2010, 10:01 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
I don't know what this file is, but it is not in my standard devel. setup. But, there seem to be LOTS of people with the same question:

http://www.google.com/search?hl=en&c...&aqi=&aql=&oq=

one of those hits surely has the answer....
 
Old 03-13-2010, 10:06 AM   #6
raju.mopidevi
Senior Member
 
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
install all of these
libsdl-image1.2
libsdl-image1.2-dev
guile-1.8
guile-1.8-dev
libsdl1.2debian-arts
libartsc0-dev
libaudiofile-dev
libesd0-dev
libdirectfb-dev
libdirectfb-extra
libfreetype6-dev
libxext-dev
x11proto-xext-dev
libfreetype6(upgrade)
libaa1
libaa1-dev
libslang2-dev
libasound2
libasound-dev
 
Old 03-13-2010, 10:19 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
All of that just to get "graphics.h"??? That seems unlikely---but what do I know (I am not a programmer---just a dumb engineer)
 
Old 03-13-2010, 01:45 PM   #8
John VV
Guru
 
Registered: Aug 2005
Posts: 13,518

Rep: Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804Reputation: 1804
i have liked using
" CImg.h "
http://cimg.sourceforge.net/
examples
http://cimg.sourceforge.net/screenshots.shtml
 
  


Reply

Tags
graphics


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
ATI on-borad graphics & Nvidia PCI graphics together? PClOStinspace Linux - Hardware 5 04-28-2009 05:30 PM
S3 SuperSavage IXC 64 SDL graphics card Opensuse 11.1 slow graphics Infasoft Suse/Novell 0 03-12-2009 10:07 AM
Sound and Graphics not working in Intel D101GGC with ATI graphics and Realtek audio sanu1 Linux - Hardware 2 12-28-2008 08:29 PM
Bad graphics: ATI raedon graphics card and slackware shady_Dev Linux - Hardware 1 05-22-2008 07:00 AM
LXer: Xi Graphics, Inc. Releases Graphics Drivers for ATI FireMV Cards LXer Syndicated Linux News 0 09-27-2006 10:54 PM


All times are GMT -5. The time now is 08:48 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration