How to enable the long long IOSTREAM-OPs (gcc-3.0.1, Unixware 7.0.1)
Phil Edwards
pedwards@disaster.jaj.com
Mon Oct 1 08:54:00 GMT 2001
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
--
"You have to wonder what kind of life you have when your list of personal
rules begins with, '#3: No drowning in your own mucus,' and '#4: Don't
ask what happened to rules 1 and 2.'"
More information about the Gcc-help
mailing list