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]

gcc 2.95.x: size_t on HP-UX 11.0 PA2.0


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


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