On Wed, Jan 5, 2011 at 1:10 PM, Robert Jones <robertgbjones@gmail.com> wrote:
I have Boost installed under Fedora13 in /usr/include, not installed by me, but I imagine
done as part of installing Fedora.

I have a codebase that uses Boost and builds perfectly, using gcc 4.5.1

Now, if I move my Boost installation

mv /usr/include/boost ~rgj/xx

and add an appropriate include directive to my compile lines, I get compile
errors from Boost headers

/home/rgj/xx/boost/date_time/gregorian/conversion.hpp: In function ‘tm boost::gregorian::to_tm(const boost::gregorian::date&)’:
/home/rgj/xx/boost/date_time/gregorian/conversion.hpp|44 col 23| error: missing initializer for member ‘tm::tm_sec’
etc, etc

Obviously I'm having a minor aberration here...what am I doing wrong?


Ok, sorted out out now. System directories are treated differently, but I can tell the
compiler to treat my boost installation as a system directory using

g++ -isystem /home/rgj/xx

- Rob.