ostringstream long long problem on Alpha/Tru64 with latest gcc3.2.1
Karel Gardas
kgardas@objectsecurity.com
Mon Nov 18 04:50:00 GMT 2002
On Mon, 18 Nov 2002, Phil Edwards wrote:
> > 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.
Yes, I agree that that's the right behaviour, but IMHO it might be
possible to use simple strtol and strtoul function on platforms where
sizeof(long long) == sizeof(long). Am I wrong?
Thanks,
Karel
--
Karel Gardas kgardas@objectsecurity.com
ObjectSecurity Ltd. http://www.objectsecurity.com
More information about the Gcc
mailing list