[C++-sig] warning: "_POSIX_C_SOURCE" redefined
Ralf W. Grosse-Kunstleve
rwgk at yahoo.com
Fri Jun 11 03:15:59 CEST 2004
--- "Paul F. Kunz" <Paul_Kunz at slac.stanford.edu> wrote:
> >>>>> On Thu, 10 Jun 2004 10:59:31 -0700 (PDT), "Ralf W. Grosse-Kunstleve"
> <rwgk at yahoo.com> said:
> > Surely recent enough that there is hope that some developer will
> > listen. Now we need a volunteer to
> > 1. Reduce the problem. I.e. strip down the includes to a
> > minimum. I'd expect the critial point to be in
> > boost/python/detail/prefix.hpp. See the comment in there.
> Here goes...
> foo.cxx ...
> #include "boost/python.hpp"
The Python developers will not be interested in this. If you absolutely have to
avoid -w, and if you cannot tolerate the warning, start with
boost/detail/prefix.hpp, the Python documentation and my bug report. The goal
would be to show that you need to include a certain system file before
including Python.h/pyconfig.h. Maybe you get lucky and you find a way to avoid
the warning with some clever code rearrangements in boost, maybe it is
impossible given the harsh approach of Python.h/pyconfig.h. In my experience
resolving this type of problem can easily absorb a few days worth of time. I
still believe it is not worth the effort.
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
More information about the Cplusplus-sig