On 29/03/2010, at 1:48 AM, Steven Watanabe wrote:

AMDG

Juan Vesa wrote:
i'm a brand new user to boost, with xcode 2.4.1, os x 10.4.11 (intel),  i686-apple-darwin8-gcc-4.0.1
i'm getting some errors trying to use a library (http://www.cs.kuleuven.ac.be/~ares/libply/) which uses boost. however i am stuck at the error:

error: 'std::tr1' has not been declared

doing ./config from boot_root/libs/config, i get the following output related to tr1:

checking std::tr1::array... no
<snip>
so, how can i enable the successful use of the std::tr1 libraries available with boost?

boost/tr1/tr1 needs to be in the compiler's include path.

In Christ,
Steven Watanabe


hi steven,
thanks for your response. i have the following search paths added to my header search paths:

/../../boost_1_42_0/boost/tr1/tr1
/../../boost_1_42_0/
/../other/libs/

but i still get the error. i rearranged the search path order, and cleared up some of the errors, but still get the ones pasted below (the "already declared in this scope" errors all occur in boost/tr1/functional.hpp).
regards,
juan

error: 'std::tr1' has not been declared
 error: 'std::tr1' has not been declared
 error: 'std::tr1' has not been declared
 error: 'std::tr1' has not been declared
error: 'std::tr1' has not been declared
error: 'std::tr1' has not been declared
/../../boost_1_42_0/boost/tr1/functional.hpp:128: error: 'reference_wrapper' is already declared in this scope
 error: 'ref' is already declared in this scope
error: 'cref' is already declared in this scope
 error: 'result_of' is already declared in this scope
 error: 'mem_fn' is already declared in this scope
 error: 'is_bind_expression' is already declared in this scope
 error: 'is_placeholder' is already declared in this scope
error: 'bind' is already declared in this scope
 error: 'bind' is already declared in this scope
 error: 'bind' is already declared in this scope
 error: 'bind' is already declared in this scope
 error: 'bind' is already declared in this scope
 error: 'bind' is already declared in this scope
 error: 'bind' is already declared in this scope
 error: 'bind' is already declared in this scope
 error: 'bind' is already declared in this scope
 error: 'bind' is already declared in this scope
 error: 'bind' is already declared in this scope
 error: 'bind' is already declared in this scope
 error: 'bind' is already declared in this scope
 error: 'bind' is already declared in this scope
 error: 'bind' is already declared in this scope
 error: 'bind' is already declared in this scope
error: 'bind' is already declared in this scope
 error: 'bind' is already declared in this scope
 error: 'bind' is already declared in this scope
 error: 'bind' is already declared in this scope
 error: 'bad_function_call' is already declared in this scope
 error: 'function' is already declared in this scope
 error: 'hash' is already declared in this scope