This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc 2.95.x: size_t on HP-UX 11.0 PA2.0
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: gcc 2.95.x: size_t on HP-UX 11.0 PA2.0
- From: "Andrew Robb" <ajrobb at hotmail dot com>
- Date: Fri, 14 Jan 2000 10:14:37 GMT
on HP-UX 11 on a PA2.0 2-processor box where uname -a gives:
HP-UX lycadev1 B.11.00 D 9000/800 1829619462 64-user license
The compiler builds but when used it complains that the definition of size_t
disagrees with the internal definition for memmove() etc.
I copied the file: /usr/include/sys/_size_t.h into the GNU include tree:
$prefix/lib/gcc-lib/hppa2.0w-hp-hpux11.00/2.95.2/include/sys/_size_t.h
and modified the definition from:
typedef unsigned long size_t;
to:
typedef unsigned int size_t;
I can now compile 32-bit applications under HP-UX 11 with gcc and g++.
Thanks for the great work,
Andy Robb.
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com