[C++-sig] _POSIX_C_SOURCE redefinition warning with python 2.3and boost-1.31.0

Andreas Beyer beyer at imb-jena.de
Thu Jun 2 20:11:34 CEST 2005


David Abrahams wrote:

>aashish at iastate.edu writes:
>
>  
>
>>Thanks Dave.
>>
>>Here is what I am getting on my console when I am trying to compile Boost.
>>
>>On googling I found that I am getting this warning because, of the
>>importance of include order for Python header files.
>>    
>>
>
>Right.
>
>  
>
>>Should I ignore these warnings? 
>>    
>>
>
>Probably not.  This is a question for the Python developers really.
>
>  
>
>>or what I can do to get rid of these warnings ?
>>    
>>
>
>Boost 1.32.0 shouldn't give you the warnings.  
>As for 1.31.0, the only thing I can suggest is that you steal
>boost/python/detail/prefix.hpp, boost/python/detail/wrap_python.hpp,
>and boost/python/detail/config.hpp from 1.32.0, and make sure you
>start all of your source files with
>
>#include <boost/python/detail/prefix.hpp>
>  
>
Here is another suggested work-around. It involves changing pyconfig.h:
http://mail.python.org/pipermail/c++-sig/2005-April/008776.html
Maybe it is easier to apply.
Are you sure you can't switch to Boost 1.32?

Andreas




More information about the Cplusplus-sig mailing list