This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Can't compile helloworld.C


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]