This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Can't compile helloworld.C
- To: Stephen Taylor <stephentaylor950 at yahoo dot com>
- Subject: Re: Can't compile helloworld.C
- From: Jakub Jelinek <jakub at redhat dot com>
- Date: Mon, 23 Jul 2001 18:51:23 +0200
- Cc: gcc at gcc dot gnu dot org
- References: <20010723155117.37740.qmail@web14907.mail.yahoo.com>
- Reply-To: Jakub Jelinek <jakub at redhat dot com>
On Mon, Jul 23, 2001 at 08:51:17AM -0700, Stephen Taylor wrote:
> Hi there,
>
> I'm teaching myself C++ using gcc 2.96 under Red Hat
> 7.1. I'm desperate for help, because I can't even
> compile "Hello World":
This does not belong to this list, this list is intended for
discussion about gcc development.
> g++ -v -I/usr/include/g++-2 helloworld.C
You should not include /usr/include/g++-2 headers when compiling with this
compiler. g++-2 directory contains egcs 1.x C++ headers.
/usr/include/g++-3 is the directory gcc 2.95.x and 2.96-RH use for C++
(gcc 3.0 uses /usr/include/g++-v3).
> ignoring nonexistent directory "/usr/include/g++-3"
And this is some error on your part, because gcc-c++ rpm requires
libstdc++-devel which provides that directory.
Jakub