LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-16-2012, 06:45 AM   #1
alaneee
LQ Newbie
 
Registered: Jun 2012
Posts: 3

Rep: Reputation: Disabled
header file-graphics.h


Hey guys,
I have gcc in my ubuntu 11.04, I want to know whether it is possible for me to compile a C program containing graphics.h header file in gcc or should I need to install additional packages?
 
Old 06-16-2012, 09:11 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Welcome to LQ.

I guess you mean "compile a c program by using the gcc compiler", like :
gcc file.c -o file

Answer : For gcc to work fully, a few more packages are required.
( libc6-dev etc.)

This command will take care of installing everything :
sudo apt-get install g++

.

Last edited by knudfl; 06-16-2012 at 09:15 AM.
 
1 members found this post helpful.
Old 06-16-2012, 09:24 AM   #3
alaneee
LQ Newbie
 
Registered: Jun 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Smile header file-graphics.h

Ya I do have g++ compiler, so my C program including header file graphics.h will run using that right?
 
Old 06-16-2012, 10:04 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Quote:
so my C program including header file graphics.h will run
May be. One never knows until it's compiled and tested.

And : The development package providing the right graphics.h must be installed.
http://packages.ubuntu.com/search?su...rds=graphics.h

http://my.opera.com/nikbhardwaj/blog/show.dml/9406191
http://zaher14.blogspot.dk/2007/01/g...-in-linux.html

.
 
1 members found this post helpful.
Old 06-17-2012, 12:22 AM   #5
alaneee
LQ Newbie
 
Registered: Jun 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
ok thanks a lot
 
  


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
How to check missing header files included from another header file adisan82 Linux - Software 1 01-28-2011 04:57 AM
[SOLVED] C++ header file problem x_cube Programming 6 05-13-2010 02:26 PM
LaTeX, placing graphics in header edgjerp Programming 3 05-20-2009 02:42 PM
header file saadiaomar Programming 4 03-23-2006 05:18 PM
Create header file for existing .c file hk_michael Programming 5 02-25-2005 06:26 PM


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