[C++-sig] Boost.Python compilation warning
Ralf W. Grosse-Kunstleve
rwgk at yahoo.com
Tue Feb 15 11:43:51 CET 2005
--- Vladimir Prus <ghost at cs.msu.su> wrote:
>
> Hello,
> I'm getting this when compiling the getting_started1 example:
>
> gcc-C++-action
>
bin/example/getting_started1.so/gcc/debug/shared-linkable-true/getting_started1.o
> In file included
> from /home/ghost/Work/boost/boost/python/detail/wrap_python.hpp:30,
> from
> /home/ghost/Work/boost/boost/python/detail/prefix.hpp:13,
> from /home/ghost/Work/boost/boost/python/module.hpp:8,
> from
> /home/ghost/Work/boost/libs/python/example/getting_started1.cpp:14:
> /usr/include/python2.3/pyconfig.h:856:1: warning: "_POSIX_C_SOURCE"
> redefined
> In file included from /usr/include/c++/3.3/i486-linux/bits/os_defines.h:39,
> from /usr/include/c++/3.3/i486-linux/bits/c++config.h:35,
> from /usr/include/c++/3.3/string:45,
> from
> /home/ghost/Work/boost/libs/python/example/getting_started1.cpp:5:
> /usr/include/features.h:131:1: warning: this is the location of the previous
> definition
>
> I have up-to-date CVS tree, Python 2.3.4 and gcc version 3.3.5. Any ideas?
Yes. Unfortunately the include order is important. As of Python 2.3 not only in
theory, but also in practice (some platforms). Please try again with the latest
boost CVS.
Ralf
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
More information about the Cplusplus-sig
mailing list