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


Thanks very much Jakub - that's wonderfully helpful. 

And my apologies for inadvertently using the wrong
list!

Thanks again,

Stephen

--- Jakub Jelinek <jakub@redhat.com> wrote:
> On Mon, Jul 23, 2001 at 08:51:17AM -0700, Stephen
> Taylor wrote:
> > 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":
> 
> >    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

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/


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