This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: How to enable the long long IOSTREAM-OPs (gcc-3.0.1, Unixware 7.0.1)


Phil Edwards wrote:
> 
> On Mon, Oct 01, 2001 at 12:31:38PM +0200, Schlick, Jochen wrote:
> > Is it possible to enable (or get to work) the
> > iostream operators for long long under Unixware 7.0.1
> >
> > I tried to use the _GLIBCPP_USE_LONG_LONG define but this
> > produces only coredumps.
> >
> > //////////////testprog.cpp//////////////////////////////////////
> > #define _GLIBCPP_USE_LONG_LONG
> 
> This isn't the way it works.  A bunch of tests are run from the 'configure'
> script.  The results of those tests determine whether _GLIBCPP_USE_LONG_LONG
> is defined or not.  If it isn't defined when the library is built, then
> you can't use them.  Defining it later, in user code, won't work.
> 
> The 'long long' extensions are on by default.  The next step is to determine
> why the configure tests turned them off.  If you have your build directory
> around, look in the libstdc++-v3 subdirectory for a file named config.log.
> 
> Phil
> 

The reason is that Unixware 7.0.1 is too old for
having all the c99 features checked by the configure
script. So, the long long extensions are turned off.

UnixWare 7.0.1 doesn't have the following functions/types:

<math.h> 
  fpclassify, isfinite, isinf, isnormal,
  signbit, isgreater, isgreaterequal, isless,
  islessequal, islessgreater, isunordered

<stdlib.h>
   lldiv_t, llabs, lldiv, _Exit, atoll (but it has strtoll )



So, for my further tests I commented out the 
specific line in the configure script and built
the gcc with libstdc++v3 again. 
It compiles without errors but the mini test 
program fails with exactly the same errors. 


best regards
-- 
 =================================================
        Jochen Schlick           }}}\/{{{
 Email: schlick_comsoft_de
 =================================================


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]