Strange problem while compiling some cpp program with g++ 3.1.

Phil Edwards
Fri Jul 26 14:46:00 GMT 2002

On Sun, Jul 21, 2002 at 07:29:45AM -0700, Tim Prince wrote:
> On Sunday 21 July 2002 07:03, Ananth Prabhu wrote:
> > I am finding following wanings/errors when compiling a cpp program with g++
> > version 3.1. I am working on a Itanium server.
> > Is this some configuration problem ??  I am not able to make out what
> > exactly the warning/error messages are pointing out?
> > /buildtools/include/g++-v3/bits/stl_alloc.h:479: warning: cast from `
> >    char*' to `std::__default_alloc_template<true, 0>::_Obj*' increases
> > required
> >    alignment of target type
> That is the only warning I see, and it appears justified.  char* may point to 
> any address.  Any object which involves other than char elements 
> will get you an Address Error if you have not taken care of this otherwise.

Assuming that no error messages were left out or removed from the email,
this represents /some/ kind of configuration error somewhere, because all
of the files mentioned are local to libstdc++-v3.  I've never seen this
message before, and it bothers me.


If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams

More information about the Gcc-bugs mailing list