Boost logo

Boost-Build :

Subject: Re: [Boost-build] Problems using Borland C++
From: Vladimir Prus (ghost_at_[hidden])
Date: 2009-06-23 09:36:20


On Tuesday 23 June 2009 Jacques63 wrote:

> I need to compile boost for the first time to build a third party program.
>
> I am using Borland Developer Studio 2006, the compiler is: Borland C++ 5.82
> for Win32
>
> The error I get is (file: enable_if.hpp):
>
> [C++ Error] enable_if.hpp(100): E2029
> 'enable_if_does_not_work_on_this_compiler<void>' must be a previously
> defined class or struct
>
> I have googled a little and found that this may be becuase my compiler does
> not support SFINAE
> "Substitution Failure Is Not An Error". That "feature" should be avoided by
> declaring BOOST_NO_SFINAE
>
> That doesn't work.

enable_if definitely needs SFINAE and cannot be used on compilers that
fail to support it. What libraries do you need? You did not provide the
complete error message so I don't know where this error comes from, but
might want to specify only the desired ones using --with-xxx command line
option to bjam (use bjam --show-libraries for a list).

> Other advices to this problem suggest that the compiler is not supported,
> but boost claims to support it.

Where such a claim is made? In general, no such claims can be made about
*all* of boost.

- Volodya


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk