ostringstream long long problem on Alpha/Tru64 with latest gcc3.2.1

Phil Edwards phil@jaj.com
Mon Nov 18 03:57:00 GMT 2002


On Mon, Nov 18, 2002 at 10:30:25AM +0100, Karel Gardas wrote:
> >     alphaev68-dec-osf5.1/libstdc++-v3/config.h
> >
> > for _GLIBCPP_USE_LONG_LONG, and in
> 
> // Include I/O support for 'long long' and 'unsigned long long'.
> /* #undef _GLIBCPP_USE_LONG_LONG */

Yep...


> configure:3747: `strtoll' undeclared (first use this function)
[...]
> configure:3764: `strtoull' undeclared (first use this function)

And there's the problem.  The C++ library depends on the underlying C library
to do the formatting of numbers.  Specifically, the "string to long long"
and "string to unsigned long long" functions.  If your system's C library
doesn't have those functions, then C++ can't do long long I/O.

Note that long long variables/functions themselves may be fine.  It's C++
I/O that's affected by the missing functions.


Phil

-- 
I would therefore like to posit that computing's central challenge, viz. "How
not to make a mess of it," has /not/ been met.
                                                 - Edsger Dijkstra, 1930-2002



More information about the Gcc mailing list