Solaris-9, SunOneStudio8 (C++ 5.5)

Charles Wilson cygwin at
Fri May 19 17:51:29 CEST 2006

In addition to Marc's patch here

I needed to use the attached patch (and -DTWO_ARGUMENT_USE_FACET when
compiling).  This works around the error:

"", line 55: Error: Could not find a match for
std::use_facet<std::Facet>(const std::locale)

which was first reported here, for gmp-4.1.99:

I believe this use_facet issue only occurs when the RogueWave std
library is being used (which is the case for C++ 5.5 in SunOneStudio8). 
Strangely, HAVE_STD__LOCALE is defined in this case (and its *almost*
STD), but the standard one-argument, explicit-template-specification
function call is not present.  Instead, an unused second function
parameter is used to guide the template name resolution -- probably
because this version of the RogueWave library was intended for use with
compilers that didn't support explicit template specification on
function calls.  However, the *functionality* is this
simple patch does the trick.

Somehow the TWO_ARGUMENT_USE_FACET macro should be hooked into the
configury/build system but hopefully this will give somebody a starting

Oh -- to build on sgi/IRIX, Marc's patch was too aggressive.  size_t is
in std::, but FILE is not!  I'll post that patch in a different email.

  Charles Wilson
  cygwin at removespam cwilson dot fastmail dot fm

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gmp-4.2.1-use_facet.patch
Type: text/patch
Size: 2164 bytes
Desc: not available
Url :

More information about the gmp-bugs mailing list