Boost logo

Boost :

From: John Max Skaller (skaller_at_[hidden])
Date: 2001-06-23 12:30:55


Jens Maurer wrote:
>
> John Max Skaller wrote:
> > Now it doesn't recognize long long constants :->
> >
> > ----------------------------------------------------
> > [root_at_pelican] ~/links/flx>g++ -Wno-long-long -D_GNU_SOURCE -ansi
> > -pedantic -Iboost_1_22_0 tmp.cpp
> > In file included from tmp.cpp:1:
> > boost_1_22_0/boost/cstdint.hpp:149: too many `l's in integer constant
> > boost_1_22_0/boost/cstdint.hpp:160: #error defaults not correct; you
> > must hand modify boost/cstdint.hpp
> > --------------------------------------------------
>
> You're running the compiler with "-ansi -pedantic", thus you
> explicitly asked to ban any non-standard construct, such as
> "long long" (which is not standard C++). Try removing the
> "-ansi -pedantic".

        The only effect of these switches is to produce a warning
for long long, which is suppressed by -Wno-long-long.
Without the -D_GNU_SOURCE, long long constants compile fine.
I tried without the -ansi -pedantic, it has no effect.
I do want these switches: I want 'strictly conforming'
C99/C++ code (with long long, including literals).

-- 
John (Max) Skaller, mailto:skaller_at_[hidden]
10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850
checkout Vyper http://Vyper.sourceforge.net
download Interscript http://Interscript.sourceforge.net

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk