[C++-sig] warning: "_POSIX_C_SOURCE" redefined

Pere Mato Vila Pere.Mato at cern.ch
Mon Jun 7 18:20:54 CEST 2004


I am having the following compilation warnings when including
"boost/python.hpp". I am using Boost 1.31.0 Python 2.3.3 and gcc 3.2. Is
anything I am doing wrong?


In file included from
/afs/cern.ch/sw/lcg/external/Python/2.3.3/rh73_gcc32/include/python2.3/P
ython.h:8,
                 from
/afs/cern.ch/sw/lcg/external/Boost/1.31.0-python233/rh73_gcc32/include/b
oost-1_31/boost/python/detail/wrap_python.hpp:121,
                 from
/afs/cern.ch/sw/lcg/external/Boost/1.31.0-python233/rh73_gcc32/include/b
oost-1_31/boost/python/detail/prefix.hpp:13,
                 from
/afs/cern.ch/sw/lcg/external/Boost/1.31.0-python233/rh73_gcc32/include/b
oost-1_31/boost/python/args.hpp:9,
                 from
/afs/cern.ch/sw/lcg/external/Boost/1.31.0-python233/rh73_gcc32/include/b
oost-1_31/boost/python.hpp:12,
                 from test.cpp:1:
/afs/cern.ch/sw/lcg/external/Python/2.3.3/rh73_gcc32/include/python2.3/p
yconfig.h:847:1: warning: "_POSIX_C_SOURCE" redefined
In file included from /usr/include/limits.h:26,
                 from
/usr/local/gcc-alt-3.2/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/limits.
h:132,
                 from
/usr/local/gcc-alt-3.2/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/syslimi
ts.h:7,
                 from
/usr/local/gcc-alt-3.2/lib/gcc-lib/i686-pc-linux-gnu/3.2/include/limits.
h:11,
                 from
/afs/cern.ch/sw/lcg/external/Boost/1.31.0-python233/rh73_gcc32/include/b
oost-1_31/boost/python/detail/wrap_python.hpp:27,
                 from
/afs/cern.ch/sw/lcg/external/Boost/1.31.0-python233/rh73_gcc32/include/b
oost-1_31/boost/python/detail/prefix.hpp:13,
                 from
/afs/cern.ch/sw/lcg/external/Boost/1.31.0-python233/rh73_gcc32/include/b
oost-1_31/boost/python/args.hpp:9,
                 from
/afs/cern.ch/sw/lcg/external/Boost/1.31.0-python233/rh73_gcc32/include/b
oost-1_31/boost/python.hpp:12,
                 from test.cpp:1:
/usr/include/features.h:131:1: warning: this is the location of the
previous definition



------------------------------------------------------------
Pere Mato  CERN, PH Department, CH 1211 Geneva 23, Switzerland
           e-mail: Pere.Mato at cern.ch    tel: +41 22 76 78696
           fax:  +41 22 76 79425        gsm: +41 76 48 70855

 




More information about the Cplusplus-sig mailing list