Problem building boost regex on hpux - getlocale(int) problem

Hi all I am trying to build boost v 1.30.0 regex library on a hp machine. The 'syname' output is this: PA-RISC2.0_hpux_11.00_v5.1c I go to the "boost-1.30.0/libs/regex/build" directory and issue a 'make -f gcc.mak' command. I get the following errors: ../src/c_regex_traits.cpp:660: call of overloaded `getlocale(int)' is ambiguous /usr/gcc/3.1/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.1/include/locale.h:144: candidates are: locale_data* getlocale(int) ../src/c_regex_traits.cpp:62: const char* <unnamed>::getlocale(int) ../src/c_regex_traits.cpp:663: call of overloaded `getlocale(int)' is ambiguous /usr/gcc/3.1/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.1/include/locale.h:144: candidates are: locale_data* getlocale(int) ../src/c_regex_traits.cpp:62: const char* Here is the gcc version. Its v3.1 =========================================================== [4:00pm: regex/build]gcc -v Reading specs from /usr/intel/pkgs/gcc/3.1/lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.1/specs Configured with: ../gcc-3.1/configure --host=hppa2.0w-hp-hpux11.00 --target=hppa2.0w-hp-hpux11.00 --prefix=/usr/gcc/3.1 --enable-languages=c,c++ --enable-threads --with-gnu-as --with-as=/usrgcc/3.1/bin/gas Thread model: single gcc version 3.1 [4:03pm: regex/build] ============================================================= Anyone have any idea how I can fix this problem of the ambiguious getlocale function? Thanks!

I am trying to build boost v 1.30.0 regex library on a hp machine. The 'syname' output is this:
Anyone have any idea how I can fix this problem of the ambiguious getlocale function?
It was fixed for 1.31, and we're on 1.33 now :-) Otherwise the fix is to rename the function "getlocale" in c_regex_traits, see: http://cvs.sourceforge.net/viewcvs.py/boost/boost/libs/regex/src/c_regex_traits.cpp?r1=1.36&r2=1.37 John.

THANK YOU!!! I really appreciate your quick responce.
From: "John Maddock" <john@johnmaddock.co.uk> Reply-To: boost@lists.boost.org To: <boost@lists.boost.org> Subject: Re: [boost] Problem building boost regex on hpux -getlocale(int)problem Date: Wed, 12 Oct 2005 11:01:47 +0100
I am trying to build boost v 1.30.0 regex library on a hp machine. The 'syname' output is this:
Anyone have any idea how I can fix this problem of the ambiguious getlocale function?
It was fixed for 1.31, and we're on 1.33 now :-)
Otherwise the fix is to rename the function "getlocale" in c_regex_traits, see: http://cvs.sourceforge.net/viewcvs.py/boost/boost/libs/regex/src/c_regex_traits.cpp?r1=1.36&r2=1.37
John.
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
participants (2)
-
John Maddock
-
Navdeep Shergill