Compile time Problem with boost::type_traits library
Hello, I am trying to use the boost::function library which in turn includes many of the headers from other boost libraries. I am using g++ 3.2 with: g++ -c -g -fwritable-strings -Wno-deprecated -static -ansi -pedantic -DANSI_HEADERS -D_G_HAVE_BOOL as the options. The file is_integral.hpp and the file is_convertible.hpp in the type_traits library contain the declarations of the type long long which the ISO C++ seemingly doesn't accept. The compiler gives the warning: ISO C++ does not support `long long' . I don't think there is a new version of this on boost. I downloaded the boost lib sometime in June Version 1.30.0. Can this problem be because of any of the compiler options that I am using? thanking you, regards, amit.
Amit Bhatia wrote:
g++ -c -g -fwritable-strings -Wno-deprecated -static -ansi -pedantic -DANSI_HEADERS -D_G_HAVE_BOOL as the options.
The compiler gives the warning: ISO C++ does not support `long long' .
Try adding -Wno-long-long to your command line. And yes, 'long long' is not (yet) in the C++ standard. Regards, Daniel -- Daniel Frey aixigo AG - financial training, research and technology Schloß-Rahe-Straße 15, 52072 Aachen, Germany fon: +49 (0)241 936737-42, fax: +49 (0)241 936737-99 eMail: daniel.frey@aixigo.de, web: http://www.aixigo.de
I am trying to use the boost::function library which in turn includes many of the headers from other boost libraries.
I am using g++ 3.2 with: g++ -c -g -fwritable-strings -Wno-deprecated -static -ansi -pedantic -DANSI_HEADERS -D_G_HAVE_BOOL as the options.
The file is_integral.hpp and the file is_convertible.hpp in the type_traits library contain the declarations of the type long long which the ISO C++ seemingly doesn't accept. The compiler gives the warning: ISO C++ does not support `long long' . I don't think there is a new version of this on boost. I downloaded the boost lib sometime in June Version 1.30.0.
Can this problem be because of any of the compiler options that I am using?
Normally gcc supports long long, but you have chosen compiler options that turn that off, I guess we should really check for __STRICT_ANSI__ before enabling long long support? John Maddock
participants (3)
-
Amit Bhatia
-
Daniel Frey
-
John Maddock