Boost logo

Boost Users :

From: Guillaume Melquiond (gmelquio_at_[hidden])
Date: 2003-10-08 11:21:37


On Wed, 8 Oct 2003, David Abrahams wrote:

> David Ohlemacher <ohlemacher_at_[hidden]> writes:
>
> > Hi all from a boost newbie,
> >
> > Given:
> > Linux RH 8.0
> > gcc 3.2
> > BOOST_VERSION 103002
> >
> > I created a boost app and it compiles and runs however I am getting
> > lots of warnings of the form
> > /usr/lib/boost/boost/iterator_adaptors.hpp:775:43: warning:
> > "BOOST_MSVC" is not defined.
> >
> > What am I not doing correctly?
>
> You're using -Wall ;-)

Unless I'm missing something, this warning is caused by -Wundef. And this
option is not set by -Wall. So this is not because of -Wall.

> We're currently discussing what to do about these warnings on the
> developers' list. Stay tuned, and until then turn off -Wall or live
> with the warnings.

So rather than removing -Wall, just remove -Wundef (or use -Wno-undef when
compiling).

Guillaume


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net