This is the mail archive of the gcc-bugs@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: HPUX11.0 G++ 2.95.2 compile problems


Alexandre Oliva wrote:
> 
> On Sep  6, 2000, Lothar Wolf <syz@ecmwf.int> wrote:
> 
> > I am trying to compile the following code on a HPUX 11 D class
> > machine.  I get messags about "size_t". I am using the same release
> > of G++ on a HPUX10.20 machine without any problems.
> 
> GCC 2.95.2 doesn't support HP-UX 11, and this is one of the symptoms.
> You'll need a development snapshot.
> 
> --
> Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
> Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
> CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
> Free Software Evangelist    *Please* write to mailing lists, not to me


I used the "hack" provided by Simon and it works :-)
:->
This is how we got around the problem. It is a hack but it has been
   (apparently) working fine for almost two years.

      * Copy the file

           /usr/include/sys/_size_t.h

        to the directory

          
/usr/local/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/include/sys

        (or equivalent depending on where you install gcc)

      * Change the following line from

           typedef unsigned long size_t;

        to

           typedef unsigned int size_t;

      * then try your compile again

   I hope this helps ...

                                               ... Simon ...Simon
Pamment <spamment@amdocs.com>


Thanks for your help

Lothar

-- 
 Lothar Wolf, Systems Analyst, Servers and Desktops Section
 European Centre for Medium-Range Weather Forecasts (ECMWF)
 Shinfield Park, Reading, Berkshire, RG2 9AX, UK (http://www.ecmwf.int)
 Email: Lothar.Wolf@ecmwf.int Telephone: (UK 0044) (0)118 9499-368

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