To save anyone else this problem - it turns out you have to include boost headers FIRST to avoid problems!

> To: boost-users@lists.boost.org
> From: dsp@bdal.de
> Date: Thu, 28 Aug 2008 16:51:40 +0200
> Subject: Re: [Boost-users] new user with compile problems
>
> Brenda Orlin wrote:
> > The only code I am including that was not self-developed is standard
> > C/C++ headers and Boost stuff. I have just confirmed that if I
> > comment-out the line which #includes boost/thread, the code compiles
> > fine. If I put the line back in (not even trying to use the Boost stuff,
> > just including that header), I get all the errors again. Any other
> > suggestions?
>
> Please provide a minimal example code that should demonstrate the
> problem. I tested the following - which summarizes your description -
> and compiled it with VS2005 SP 1 successfully:
>
> --------------------------------
> #include <boost/thread.hpp>
>
> int main() {
> }
> --------------------------------
>
> Greetings from Bremen,
>
> Daniel Krügler
>
> _______________________________________________
> Boost-users mailing list
> Boost-users@lists.boost.org
> http://lists.boost.org/mailman/listinfo.cgi/boost-users



See what people are saying about Windows Live. Check out featured posts. Check It Out!