LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-28-2009, 12:01 AM   #1
manugupt1
LQ Newbie
 
Registered: Mar 2009
Posts: 6

Rep: Reputation: 0
Post GCC and package installation


When i use #include<iostream> ingcc, I am given an error saying no such files exist

How do i rectify it??

Secondly
How come i tell if I have a specific package installed or a particular library installed
 
Old 07-28-2009, 12:48 AM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,275

Rep: Reputation: 148Reputation: 148
Quote:
How come i tell if I have a specific package installed
if your distro is rpm based
#rpm -qa | grep gcc
 
Old 07-28-2009, 10:28 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,737

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
#include <iostream>

'iostream' is a c++ header, and is provided
by the package 'libstdc++6-4.3-dev' being
installed with the 'g++-4.3' package.
( I guess, you are still using Debian 5.)

1) su
2) apt get-install g++
( which will install g++-4.3 )
Or choose another or some more 'g++'s, if you wish,
they are all mentioned here
http://packages.debian.org/lenny/g++
http://packages.debian.org/lenny/g++-4.3
.....

Last edited by knudfl; 07-28-2009 at 10:32 AM.
 
  


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
Initial gcc installation-How to compile gcc itself pgb205 Linux - Software 4 02-26-2008 11:24 PM
installing gcc package aru_04 Fedora - Installation 2 06-14-2005 04:42 AM
message "Problem during installation: x package needed for (installed) x package frayed2 Linux - Newbie 1 04-24-2005 08:05 PM
GCC RPM in One Package? bongski55 Red Hat 3 02-19-2004 06:24 AM
installing gcc package guerilla fighta Linux - Software 1 04-27-2002 10:47 AM

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

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