Solaris-9, SunOneStudio8 (C++ 5.5)
Charles Wilson
cygwin at cwilson.fastmail.fm
Fri May 19 17:51:29 CEST 2006
In addition to Marc's patch here
http://gmplib.org/list-archives/gmp-bugs/2006-May/000417.html
I needed to use the attached patch (and -DTWO_ARGUMENT_USE_FACET when
compiling). This works around the error:
"ismpf.cc", 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:
http://gmplib.org/list-archives/gmp-discuss/2006-March/002206.html
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 present...so 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
point.
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.
--
Chuck
--
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 : http://gmplib.org/list-archives/gmp-bugs/attachments/20060519/5e753877/gmp-4.2.1-use_facet.bin
More information about the gmp-bugs
mailing list