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?

> To: boost-users@lists.boost.org
> From: dsp@bdal.de
> Date: Thu, 28 Aug 2008 07:59:13 +0200
> Subject: Re: [Boost-users] new user with compile problems
>
> Brenda Orlin wrote:
> > I am trying to use Boost version 1.36 with Microsoft Visual Studio 2005.
> > When I try to include the thread library, I get all kinds of compile
> > errors. One example is:
> > Error 1 error C2632: 'float' followed by 'float' is illegal C:\Program
> > Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h 155
>
> Please check whether (a) your own code or (b) third-party code that you
> include (not boost) does something like:
>
> #define FLOAT float
>
> In case of (a): Don't do that.
> In case of (b): Trash the included library. If you can't: Do something
> like:
>
> #undef FLOAT
>
> *before* including any windows header and boost header (because the last
> one can include windows headers) after inclusion of the third-party
> code. This can influence the behavior of the third-party tool, so
> you possibly need to completely separate this third-party tool header
> from others (own translation unit).
>
> HTH & Greetings from Bremen,
>
> Daniel Krügler
>
> _______________________________________________
> Boost-users mailing list
> Boost-users@lists.boost.org
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


Get thousands of games on your PC, your mobile phone, and the web with Windows®. Game with Windows