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: MICO: Installing MICO on an HP-UX 11.0 platform



   I had a similar problem with code generating complaints about
   declarations conflicting with built in declarations.

   The problem appears to be something to do with size_t being an
   "unsigned int" or an "unsigned long". The definition in the system
   header file

      /usr/include/sys/_size_t.h

   declares that it is an "unsigned long" while it appears that GCC
   internally has it declared as an "unsigned int".

   I managed to solve the problem (albeit as a hack) by copying the
   above file into the following directory

      <install_dir>/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/include/sys

   and changing the typedef 

      typedef unsigned long size_t;

   to

      typedef unsigned int size_t;

   This has worked for me so far, but I am only too ready to concede
   that it maybe rather unsafe. 

   I hope this helps ...

                                                 ... regards Simon ...


======================================================================
Simon Pamment                                   Consultant to Amdocs
Voice : (217) 239-2482                          2109 South Fox Drive
Fax   : (217) 351-7420                          Champaign, Illinois
======================================================================

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