[math] use of long long causes errors on gcc.

AMDG gcc.compile.c++ bin\quaternion.test\gcc-4.3.0\debug\quaternion.o In file included from c:\Documents and Settings\Steven\My Documents\boost/boost/math/tools/config.hpp:24, from c:\Documents and Settings\Steven\My Documents\boost/boost/math/special_functions/sinc.hpp:18, from c:\Documents and Settings\Steven\My Documents\boost/boost/math/quaternion.hpp:28, from quaternion.cpp:47: c:\Documents and Settings\Steven\My Documents\boost/boost/math/special_functions/detail/round_fwd.hpp:36: error: ISO C++ 1998 does not support 'long long' c:\Documents and Settings\Steven\My Documents\boost/boost/math/special_functions/detail/round_fwd.hpp:38: error: ISO C++ 1998 does not support 'long long' c:\Documents and Settings\Steven\My Documents\boost/boost/math/special_functions/detail/round_fwd.hpp:54: error: ISO C++ 1998 does not support 'long long' c:\Documents and Settings\Steven\My Documents\boost/boost/math/special_functions/detail/round_fwd.hpp:56: error: ISO C++ 1998 does not support 'long long' c:\Documents and Settings\Steven\My Documents\boost/boost/math/special_functions/detail/round_fwd.hpp:72: error: ISO C++ 1998 does not support 'long long' c:\Documents and Settings\Steven\My Documents\boost/boost/math/special_functions/detail/round_fwd.hpp:74: error: ISO C++ 1998 does not support 'long long' "g++-4.3.0" -ftemplate-depth-128 -O0 -fno-inline -Wall -pedantic -g -DBOOST_ALL_NO_LIB -I"..\..\.." -I"c:\Documents and Settings\Steven\My Documents\boost" -c -o "bin\quaternion.test\gcc-4.3.0\debug\quaternion.o" "quaternion.cpp" In Christ, Steven Watanabe

Steven Watanabe wrote:
AMDG
gcc.compile.c++ bin\quaternion.test\gcc-4.3.0\debug\quaternion.o In file included from c:\Documents and Settings\Steven\My Documents\boost/boost/math/tools/config.hpp:24, from c:\Documents and Settings\Steven\My Documents\boost/boost/math/special_functions/sinc.hpp:18, from c:\Documents and Settings\Steven\My Documents\boost/boost/math/quaternion.hpp:28, from quaternion.cpp:47: c:\Documents and Settings\Steven\My Documents\boost/boost/math/special_functions/detail/round_fwd.hpp:36: error: ISO C++ 1998 does not support 'long long'
I'm testing a fix for this, but I'm left with a bunch of warnings: warning: use of C99 long long integer constant That I can't get rid of, not even with __extension__, anyone any ideas? Thanks, John.

John Maddock wrote:
I'm testing a fix for this, but I'm left with a bunch of warnings:
warning: use of C99 long long integer constant
That I can't get rid of, not even with __extension__, anyone any ideas?
I think that you get this kind of pedantry, when you ask for it (with -pedantic). -- Dick Hadsell 914-259-6320 Fax: 914-259-6499 Reply-to: hadsell@blueskystudios.com Blue Sky Studios http://www.blueskystudios.com 44 South Broadway, White Plains, NY 10601

AMDG Richard Hadsell wrote:
John Maddock wrote:
I'm testing a fix for this, but I'm left with a bunch of warnings:
warning: use of C99 long long integer constant
That I can't get rid of, not even with __extension__, anyone any ideas?
I think that you get this kind of pedantry, when you ask for it (with -pedantic).
You can use long_long_type from config.hpp... In Christ, Steven Watanabe

Steven Watanabe wrote:
I think that you get this kind of pedantry, when you ask for it (with -pedantic).
You can use long_long_type from config.hpp...
I know, I put it in there :-) That gets rid of the errors, but not the blizzard of warnings from the LL and uLL suffixes. John.

Steven Watanabe wrote:
You can use long_long_type from config.hpp...
This change is now in SVN Trunk - all but a handful of Boost.Math tests pass now when building with -pedantic (those that fail are dues to Boost.Random not building with -pedantic). There are still an awful lot of warnings about 64-bit integer constants though :-( John.

AMDG John Maddock wrote:
Steven Watanabe wrote:
You can use long_long_type from config.hpp...
This change is now in SVN Trunk - all but a handful of Boost.Math tests pass now when building with -pedantic (those that fail are dues to Boost.Random not building with -pedantic). There are still an awful lot of warnings about 64-bit integer constants though :-(
Would this help: ((static_cast<ulong_long_type>(/first half of constant/) << 32) | static_cast<ulong_long_type>(/second half of constant/)) Pretty ugly, though. In Christ, Steven Watanabe
participants (3)
-
John Maddock
-
Richard Hadsell
-
Steven Watanabe