LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 05: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, 08:11 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 08:15 AM.
 
1 members found this post helpful.
Old 06-16-2012, 08: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, 09:04 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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-16-2012, 11:22 PM   #5
alaneee
LQ Newbie
 
Registered: Jun 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
ok thanks a lot
 
  


Reply



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 03:57 AM
[SOLVED] C++ header file problem x_cube Programming 6 05-13-2010 01:26 PM
LaTeX, placing graphics in header edgjerp Programming 3 05-20-2009 01:42 PM
header file saadiaomar Programming 4 03-23-2006 04:18 PM
Create header file for existing .c file hk_michael Programming 5 02-25-2005 05:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:59 PM.

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