std::cout and long long problem

Jason Merrill jason@redhat.com
Mon Feb 12 14:28:00 GMT 2001


>>>>> "Alexandre" == Alexandre Oliva <aoliva@redhat.com> writes:

> On Feb 12, 2001, Benjamin Kosnik <bkoz@redhat.com> wrote:
>>> Err...  But since GCC supports it as an extension by default,
>>> shouldn't libstdc++ support it by default too?

>> look on the mailing list for this (old) thread. It's not gcc issues per 
>> se but "C" library header issues when we enable by long long by default. 
>> (lldiv_t in particular gives problems.)

> Err..  If it's lldiv_t that gives problems, wouldn't it be the case to
> have lldiv_t enabled/disabled separately in the OS bits, instead of
> just throwing away all long-long support?

> WRT OS bits, wouldn't it be reasonable to arrange for any C++
> translation unit to implicitly #include the libstdc++ config bits
> upfront?  Adding `-include c++config.h' to the C++ specs doesn't seem
> too much trouble to me.

Interesting idea.  In any case, I think it makes sense to revisit this
discussion now that we have CPLUSPLUS_CPP_SPEC.

Jason



More information about the Libstdc++ mailing list