LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   GCC and package installation (https://www.linuxquestions.org/questions/linux-newbie-8/gcc-and-package-installation-743266/)

manugupt1 07-27-2009 11:01 PM

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

kirukan 07-27-2009 11:48 PM

Quote:

How come i tell if I have a specific package installed
if your distro is rpm based
#rpm -qa | grep gcc

knudfl 07-28-2009 09:28 AM

#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
.....


All times are GMT -5. The time now is 08:32 AM.