|
Boost : |
From: Deane Yang (deane_yang_at_[hidden])
Date: 2006-09-04 18:59:19
Matthias Schabel wrote:
>> I also cannot build the tests. There are at least two problems:
>>
>> 1) The #include directives inside the test code assume that the
>> directory "units" is inside a directory called "mcs". So I created the
>> directory "mcs" and moved "units" into it.
>
> Right - believe it or not, this is included in the main page of the
> documentation,
> in the "Installation" section...
I didn't see that. But wouldn't it make sense for you to just distribute
everything with units already inside a directory called "mcs"?
>
>> 2) There is at least one #include directive that refers to the
>> directory
>> "mcs/utility", and it tries to include a header file called
>> "type_traits.hpp", which is a file that I do not see in the
>> distribution.
>
> This is fixed by the two files I attached in the previous message -
> in any case,
> I believe the only dependency on <mcs/utility/type_traits.hpp> is in
> unit_test_1.cpp,
> so the other four tests should work...
Not. unit_test_4.cpp and unit_test_5.cpp have the same dependency.
Other observations:
1) unit_test_1.cpp depends on the boost.regex library. (Some of us have
never built the boost.regex library. My solution is just to skip
unit_test_1.cpp for now.)
2) The unit tests appear to build using gcc 3.4.4, but not with VC8.0. I
get the following:
unit_example_2.cpp
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\iterator(589) :
error C2872: 'size_t' : ambiguous symbol
could be 'predefined C++ types (compiler internal)(19) :
unsigned int size_t'
or '..\..\..\..\boost\boost/mpl/aux_/integral_wrapper.hpp(81) :
boost::mpl::size_t'
C:\Program Files\Microsoft Visual Studio
8\VC\INCLUDE\iterator(730) : see reference to class template
instantiation 'stdext::checked_array_iterator<_Iterator>' being compiled
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\iterator(589) :
error C2872: 'size_t' : ambiguous symbol
could be 'predefined C++ types (compiler internal)(19) :
unsigned int size_t'
or '..\..\..\..\boost\boost/mpl/aux_/integral_wrapper.hpp(81) :
boost::mpl::size_t'
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\iterator(589) :
error C2872: 'size_t' : ambiguous symbol
could be 'predefined C++ types (compiler internal)(19) :
unsigned int size_t'
or '..\..\..\..\boost\boost/mpl/aux_/integral_wrapper.hpp(81) :
boost::mpl::size_t'
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\iterator(589) :
error C2872: 'size_t' : ambiguous symbol
could be 'predefined C++ types (compiler internal)(19) :
unsigned int size_t'
or '..\..\..\..\boost\boost/mpl/aux_/integral_wrapper.hpp(81) :
boost::mpl::size_t'
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\iterator(602) :
error C2872: 'size_t' : ambiguous symbol
could be 'predefined C++ types (compiler internal)(19) :
unsigned int size_t'
or '..\..\..\..\boost\boost/mpl/aux_/integral_wrapper.hpp(81) :
boost::mpl::size_t'
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\iterator(728) :
error C2872: 'size_t' : ambiguous symbol
could be 'predefined C++ types (compiler internal)(19) :
unsigned int size_t'
or '..\..\..\..\boost\boost/mpl/aux_/integral_wrapper.hpp(81) :
boost::mpl::size_t'
C:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\iterator(729) :
error C2872: 'size_t' : ambiguous symbol
could be 'predefined C++ types (compiler internal)(19) :
unsigned int size_t'
or '..\..\..\..\boost\boost/mpl/aux_/integral_wrapper.hpp(81) :
boost::mpl::size_t'
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk