[C++-sig] avoiding long long warning in boost

Philippe Fremy phil at freehackers.org
Tue May 20 19:02:43 CEST 2003


	Hi,

I am trying to build my first python extension with boost. For personal 
reasons I am using a tmake based makefile instead of the bjam one. But it 
should not relate to my question.

When building my extension, I get tons of warning, some from the long long 
usage, others being obscure to me.

I was wondering if there is any way to disable the use of long long in 
boost, so that I don't get all these warnings. There seem to be some macro 
testing before enabling the use of long long but I am too unfamiliar with 
boost to understand where I can configure that.

I also welcome any information from the second error.

	regards,

	Philippe

philippe at werewindle 
~/work/jayacard/cvs-sf_jayacard/experimental/boost_python $ make
g++ -c -pipe -Wall -W -ansi -pedantic -Wno-unused-parameter -g -fPIC 
-DBOOST_PYTHON_DYNAMIC_LIB -I/usr/include/python2.2 -I/usr/src/boost_1_29_0 
-o obj/some_file.o some_file.cpp
In file included from /usr/src/boost_1_29_0/boost/python.hpp:43,
                 from some_file.cpp:53:
/usr/src/boost_1_29_0/boost/python/operators.hpp:184:42: warning: pasting 
"operator" and "+" does not give a valid preprocessing token
/usr/src/boost_1_29_0/boost/python/operators.hpp:185:42: warning: pasting 
"operator" and "-" does not give a valid preprocessing token
/usr/src/boost_1_29_0/boost/python/operators.hpp:186:42: warning: pasting 
"operator" and "*" does not give a valid preprocessing token
/usr/src/boost_1_29_0/boost/python/operators.hpp:187:42: warning: pasting 
"operator" and "/" does not give a valid preprocessing token
/usr/src/boost_1_29_0/boost/python/operators.hpp:188:42: warning: pasting 
"operator" and "%" does not give a valid preprocessing token
/usr/src/boost_1_29_0/boost/python/operators.hpp:189:49: warning: pasting 
"operator" and "<<" does not give a valid preprocessing token
/usr/src/boost_1_29_0/boost/python/operators.hpp:190:49: warning: pasting 
"operator" and ">>" does not give a valid preprocessing token
/usr/src/boost_1_29_0/boost/python/operators.hpp:191:42: warning: pasting 
"operator" and "&" does not give a valid preprocessing token
/usr/src/boost_1_29_0/boost/python/operators.hpp:192:42: warning: pasting 
"operator" and "^" does not give a valid preprocessing token
/usr/src/boost_1_29_0/boost/python/operators.hpp:193:40: warning: pasting 
"operator" and "|" does not give a valid preprocessing token
/usr/src/boost_1_29_0/boost/python/operators.hpp:194:39: warning: pasting 
"operator" and ">" does not give a valid preprocessing token
/usr/src/boost_1_29_0/boost/python/operators.hpp:195:40: warning: pasting 
"operator" and ">=" does not give a valid preprocessing token
/usr/src/boost_1_29_0/boost/python/operators.hpp:196:39: warning: pasting 
"operator" and "<" does not give a valid preprocessing token
/usr/src/boost_1_29_0/boost/python/operators.hpp:197:40: warning: pasting 
"operator" and "<=" does not give a valid preprocessing token
/usr/src/boost_1_29_0/boost/python/operators.hpp:198:40: warning: pasting 
"operator" and "==" does not give a valid preprocessing token
/usr/src/boost_1_29_0/boost/python/operators.hpp:199:40: warning: pasting 
"operator" and "!=" does not give a valid preprocessing token
/usr/src/boost_1_29_0/boost/python/operators.hpp:271:38: warning: pasting 
"operator" and "+=" does not give a valid preprocessing token
/usr/src/boost_1_29_0/boost/python/operators.hpp:272:38: warning: pasting 
"operator" and "-=" does not give a valid preprocessing token
/usr/src/boost_1_29_0/boost/python/operators.hpp:273:38: warning: pasting 
"operator" and "*=" does not give a valid preprocessing token
/usr/src/boost_1_29_0/boost/python/operators.hpp:274:38: warning: pasting 
"operator" and "/=" does not give a valid preprocessing token
/usr/src/boost_1_29_0/boost/python/operators.hpp:275:38: warning: pasting 
"operator" and "%=" does not give a valid preprocessing token
/usr/src/boost_1_29_0/boost/python/operators.hpp:276:42: warning: pasting 
"operator" and "<<=" does not give a valid preprocessing token
/usr/src/boost_1_29_0/boost/python/operators.hpp:277:42: warning: pasting 
"operator" and ">>=" does not give a valid preprocessing token
/usr/src/boost_1_29_0/boost/python/operators.hpp:278:38: warning: pasting 
"operator" and "&=" does not give a valid preprocessing token
/usr/src/boost_1_29_0/boost/python/operators.hpp:279:38: warning: pasting 
"operator" and "^=" does not give a valid preprocessing token
/usr/src/boost_1_29_0/boost/python/operators.hpp:280:37: warning: pasting 
"operator" and "|=" does not give a valid preprocessing token
In file included from some_file.cpp:53:
 :8: warning: extra tokens at end of #endif directive
In file included from /usr/include/python2.2/Python.h:73,
                 from 
/usr/src/boost_1_29_0/boost/python/detail/wrap_python.hpp:121,
                 from /usr/src/boost_1_29_0/boost/python/handle.hpp:9,
                 from /usr/src/boost_1_29_0/boost/python/args_fwd.hpp:9,
                 from /usr/src/boost_1_29_0/boost/python/args.hpp:9,
                 from /usr/src/boost_1_29_0/boost/python.hpp:9,
                 from some_file.cpp:53:
/usr/include/python2.2/longobject.h:48: warning: ISO C++ does not support 
`long
   long'
/usr/include/python2.2/longobject.h:49: warning: ISO C++ does not support 
`long
   long'
/usr/include/python2.2/longobject.h:50: warning: ISO C++ does not support 
`long
   long'
/usr/include/python2.2/longobject.h:51: warning: ISO C++ does not support 
`long
   long'
In file included from 
/usr/src/boost_1_29_0/boost/type_traits/is_arithmetic.hpp:13,
                 from 
/usr/src/boost_1_29_0/boost/type_traits/is_scalar.hpp:13,
                 from /usr/src/boost_1_29_0/boost/type_traits/is_POD.hpp:14,
                 from 
/usr/src/boost_1_29_0/boost/type_traits/has_trivial_assign.hpp:13,
                 from 
/usr/src/boost_1_29_0/boost/type_traits/has_nothrow_assign.hpp:13,
                 from /usr/src/boost_1_29_0/boost/type_traits.hpp:18,
                 from 
/usr/src/boost_1_29_0/boost/function/function_base.hpp:25,
                 from 
/usr/src/boost_1_29_0/boost/function/function_template.hpp:24,
                 from /usr/src/boost_1_29_0/boost/function/function0.hpp:28,
                 from /usr/src/boost_1_29_0/boost/python/errors.hpp:14,
                 from /usr/src/boost_1_29_0/boost/python/handle.hpp:11,
                 from /usr/src/boost_1_29_0/boost/python/args_fwd.hpp:9,
                 from /usr/src/boost_1_29_0/boost/python/args.hpp:9,
                 from /usr/src/boost_1_29_0/boost/python.hpp:9,
                 from some_file.cpp:53:
/usr/src/boost_1_29_0/boost/type_traits/is_integral.hpp:43: warning: ISO C++
   does not support `long long'
/usr/src/boost_1_29_0/boost/type_traits/is_integral.hpp:43: warning: ISO C++
   does not support `long long'
/usr/src/boost_1_29_0/boost/type_traits/is_integral.hpp:43: warning: ISO C++
   does not support `long long'
/usr/src/boost_1_29_0/boost/type_traits/is_integral.hpp:43: warning: ISO C++
   does not support `long long'
/usr/src/boost_1_29_0/boost/type_traits/is_integral.hpp:44: warning: ISO C++
   does not support `long long'
/usr/src/boost_1_29_0/boost/type_traits/is_integral.hpp:44: warning: ISO C++
   does not support `long long'
/usr/src/boost_1_29_0/boost/type_traits/is_integral.hpp:44: warning: ISO C++
   does not support `long long'
/usr/src/boost_1_29_0/boost/type_traits/is_integral.hpp:44: warning: ISO C++
   does not support `long long'
In file included from 
/usr/src/boost_1_29_0/boost/type_traits/is_enum.hpp:17,
                 from 
/usr/src/boost_1_29_0/boost/type_traits/is_scalar.hpp:14,
                 from /usr/src/boost_1_29_0/boost/type_traits/is_POD.hpp:14,
                 from 
/usr/src/boost_1_29_0/boost/type_traits/has_trivial_assign.hpp:13,
                 from 
/usr/src/boost_1_29_0/boost/type_traits/has_nothrow_assign.hpp:13,
                 from /usr/src/boost_1_29_0/boost/type_traits.hpp:18,
                 from 
/usr/src/boost_1_29_0/boost/function/function_base.hpp:25,
                 from 
/usr/src/boost_1_29_0/boost/function/function_template.hpp:24,
                 from /usr/src/boost_1_29_0/boost/function/function0.hpp:28,
                 from /usr/src/boost_1_29_0/boost/python/errors.hpp:14,
                 from /usr/src/boost_1_29_0/boost/python/handle.hpp:11,
                 from /usr/src/boost_1_29_0/boost/python/args_fwd.hpp:9,
                 from /usr/src/boost_1_29_0/boost/python/args.hpp:9,
                 from /usr/src/boost_1_29_0/boost/python.hpp:9,
                 from some_file.cpp:53:
/usr/src/boost_1_29_0/boost/type_traits/is_convertible.hpp:220: warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/type_traits/is_convertible.hpp:220: warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/type_traits/is_convertible.hpp:220: warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/type_traits/is_convertible.hpp:220: warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/type_traits/is_convertible.hpp:220: warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/type_traits/is_convertible.hpp:220: warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/type_traits/is_convertible.hpp:221: warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/type_traits/is_convertible.hpp:221: warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/type_traits/is_convertible.hpp:221: warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/type_traits/is_convertible.hpp:221: warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/type_traits/is_convertible.hpp:221: warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/type_traits/is_convertible.hpp:221: warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/type_traits/is_convertible.hpp:222: warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/type_traits/is_convertible.hpp:222: warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/type_traits/is_convertible.hpp:222: warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/type_traits/is_convertible.hpp:222: warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/type_traits/is_convertible.hpp:222: warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/type_traits/is_convertible.hpp:222: warning: ISO
   C++ does not support `long long'
In file included from 
/usr/src/boost_1_29_0/boost/python/converter/arg_to_python.hpp:22,
                 from /usr/src/boost_1_29_0/boost/python/call.hpp:14,
                 from /usr/src/boost_1_29_0/boost/python.hpp:14,
                 from some_file.cpp:53:
/usr/src/boost_1_29_0/boost/python/converter/builtin_converters.hpp:97: 
warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/python/converter/builtin_converters.hpp:97: 
warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/python/converter/builtin_converters.hpp:97: 
warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/python/converter/builtin_converters.hpp:97: 
warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/python/converter/builtin_converters.hpp:97: 
warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/python/converter/builtin_converters.hpp:97: 
warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/python/converter/builtin_converters.hpp:98: 
warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/python/converter/builtin_converters.hpp:98: 
warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/python/converter/builtin_converters.hpp:98: 
warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/python/converter/builtin_converters.hpp:98: 
warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/python/converter/builtin_converters.hpp:98: 
warning: ISO
   C++ does not support `long long'
/usr/src/boost_1_29_0/boost/python/converter/builtin_converters.hpp:98: 
warning: ISO
   C++ does not support `long long'
rm -f libsome_file.so.1.0.0 libsome_file.so libsome_file.so.1 
libsome_file.so.1.0
g++ -shared -Wl,-soname,libsome_file.so.1 -o libsome_file.so.1.0.0 
obj/some_file.o   -L"../build/bin-stage" -L"/usr/lib/python2.2/config" 
-lboost_python_debug
ln -s libsome_file.so.1.0.0 libsome_file.so
ln -s libsome_file.so.1.0.0 libsome_file.so.1
ln -s libsome_file.so.1.0.0 libsome_file.so.1.0


-- 
Horms and I discussed this, and we came up with two categories of people:
people who use vim, and people who don't realize that they could be using
vim.
        - Geoff Harrison





More information about the Cplusplus-sig mailing list