This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
re: MICO: Installing MICO on an HP-UX 11.0 platform
- To: gcc at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
- Subject: re: MICO: Installing MICO on an HP-UX 11.0 platform
- From: Simon Pamment <spamment at amdocs dot com>
- Date: Tue, 11 Apr 2000 09:20:06 -0500 (CDT)
- CC: Beatriz Castro GarcÚa <beatriz dot castro at sema dot es>
- Mailer: Emacs [20.3]
- Reply-to: spamment at amdocs dot com
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
======================================================================