ostream and long long

David Durham david.durham@wcom.com
Wed Jul 25 14:02:00 GMT 2001


Actually, I may have seen what Andris is saying...  I'm on solaris-2.5.1
and I recompiled with --enable-long-long and 'ostream << long long int'
is still not valid... I even opened up the header file
include/g++-v3/bits/std_ostream.h and see that operator<<(ostream &,
long long) is defined IF _GLIBCPP_USE_LONG_LONG is defined... But
apparently _GLIBCPP_USE_LONG_LONG was not defined even though I re-ran
configure --enable-long-long  on a new empty build directory

Any ideas?   What do you mean "large number of C99 functions"... How do
I get/include/define/use these?

Thanks,
   Davy

On 25 Jul 2001 22:47:23 +0200, Gabriel Dos Reis wrote:
> Andris Pavenis <andris@hal.astr.lu.lv> writes:
> 
> | On 24 Jul 2001, Gabriel Dos Reis wrote:
> | 
> | > David Durham <david.durham@wcom.com> writes:
> | >
> | > | Well, with gcc 3.0 (solaris 2.5.1) compiling with c++ (as opposed to g++
> | > | or gcc)
> | >
> | > It seems like you didn't configure GCC with --enable-long-long.  Did you?
> | >
> | 
> | --enable-long-long is ignored unless large number of C99 functions
> | (like wide character functions, c99 mathematical functions and some
> | long long type related ones) are available. If You don't have at least
> | one it's ignored.
> | 
> | Perhaps it would be better to test for functions really related to
> | using long long instead of binding it to support of many unrelated ones
> 
> If --enable-long-long, then the accompanying C99 mathematical
> functions should be availble for long long support.  They are not
> unreleated. 
> 
> -- Gaby
> 




More information about the Gcc-bugs mailing list