Boost logo

Boost Users :

From: Mateusz Łoskot (mateusz_at_[hidden])
Date: 2006-03-10 18:03:50


Hi,

Today, I tried to build Unit Test examples on my Linux box and without
success so far.

I use Ubuntu Breezy, so installed Boost from packages.
It seems to be Boost 1.33 version:
http://packages.ubuntu.com/breezy/libs/libboost-test1.33.0

GCC on my box is:
mloskot_at_dog:~$ g++ --version
g++ (GCC) 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)

Next, I checkouted Boost sources from CVS to have latest examples on my disk.
As a first test I tried to build
boost/libs/test/example/unit_test_example_04.cpp
that mainly presents usage of BOOST_AUTO_TEST_SUITE and
BOOST_AUTO_TEST_CASE macros.

Here is error message I got:
mloskot_at_dog:~/dev/boost/_cvs/boost/libs/test/example$ g++ -Wall
unit_test_example_04.cpp -lboost_unit_test_framework
unit_test_example_04.cpp:15: error: expected constructor, destructor, or type
conversion before ‘(’ token
unit_test_example_04.cpp:17: error: expected constructor, destructor, or type
conversion before ‘(’ token
unit_test_example_04.cpp:25: error: expected constructor, destructor, or type
conversion before ‘(’ token
unit_test_example_04.cpp:34: error: expected constructor, destructor, or type
conversion before ‘;’ token
unit_test_example_04.cpp:39: error: expected constructor, destructor, or type
conversion before ‘(’ token
unit_test_example_04.cpp:48: error: expected constructor, destructor, or type
conversion before ‘(’ token
unit_test_example_04.cpp:51: error: expected constructor, destructor, or type
conversion before ‘(’ token
unit_test_example_04.cpp:58: error: expected constructor, destructor, or type
conversion before ‘;’ token
mloskot_at_dog:~/dev/boost/_cvs/boost/libs/test/example$

Nothing more.

I also tried to compile example as simple as possible example:

#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_CASE( test1 )
{
   // with or without some check
   //BOOST_CHECK( true );
}

but with the same results:

mloskot_at_dog:~/dev/geos/_cvs/geos/tests/unit$ g++ -Wall
-lboost_unit_test_framework envelope_class_test.cpp envelope_class_test.cpp:2:
error: expected constructor, destructor, or type conversion before ‘(’ token

I really don't have any idea what's going wrong.
I tried to find some help in lists archives and the only similar
problem I found is not very helpful:
http://thread.gmane.org/gmane.comp.lib.boost.devel/115540

It's a bit old post and I use much newer Boost, 1.33, so it seems this
post does not apply to my case.

Could anyone explain me how to fix it?
Honestly, I suppose that I should build Boost 1.34 from CVS but I'm not sure.
I use 1.34 on Windows with VC++ 8.0 and compile my own test units and
examples without problems.
But I'd strongly prefer to use latest stable Boost in my project, just to not
to force users to build Boost themself.

Here I include (long) headers inclusion path generated by g++ -H:

mloskot_at_dog:~/dev/boost/_cvs/boost/libs/test/example$ g++ -H -Wall
unit_test_example_04.cpp -lboost_unit_test_framework
. /usr/include/boost/test/unit_test.hpp
.. /usr/include/boost/test/test_tools.hpp
... /usr/include/boost/test/predicate_result.hpp
.... /usr/include/boost/test/utils/class_properties.hpp
..... /usr/include/boost/test/detail/config.hpp
...... /usr/include/boost/config.hpp
....... /usr/include/boost/config/user.hpp
....... /usr/include/boost/config/select_compiler_config.hpp
....... /usr/include/boost/config/compiler/gcc.hpp
....... /usr/include/boost/config/select_stdlib_config.hpp
........ /usr/include/c++/4.0.2/utility
......... /usr/include/c++/4.0.2/x86_64-linux-gnu/bits/c++config.h
.......... /usr/include/c++/4.0.2/x86_64-linux-gnu/bits/os_defines.h
........... /usr/include/features.h
............ /usr/include/sys/cdefs.h
............ /usr/include/gnu/stubs.h
......... /usr/include/c++/4.0.2/bits/stl_relops.h
......... /usr/include/c++/4.0.2/bits/stl_pair.h
....... /usr/include/boost/config/stdlib/libstdcpp3.hpp
....... /usr/include/boost/config/select_platform_config.hpp
....... /usr/include/boost/config/platform/linux.hpp
........ /usr/include/c++/4.0.2/cstdlib
......... /usr/include/c++/4.0.2/cstddef
.......... /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/stddef.h
......... /usr/include/stdlib.h
.......... /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/stddef.h
.......... /usr/include/bits/waitflags.h
.......... /usr/include/bits/waitstatus.h
........... /usr/include/endian.h
............ /usr/include/bits/endian.h
.......... /usr/include/xlocale.h
.......... /usr/include/sys/types.h
........... /usr/include/bits/types.h
............ /usr/include/bits/wordsize.h
............ /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/stddef.h
............ /usr/include/bits/typesizes.h
........... /usr/include/time.h
........... /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/stddef.h
........... /usr/include/sys/select.h
............ /usr/include/bits/select.h
............ /usr/include/bits/sigset.h
............ /usr/include/time.h
............ /usr/include/bits/time.h
........... /usr/include/sys/sysmacros.h
........... /usr/include/bits/pthreadtypes.h
............ /usr/include/bits/wordsize.h
.......... /usr/include/alloca.h
........... /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/stddef.h
........ /usr/include/boost/config/posix_features.hpp
......... /usr/include/unistd.h
.......... /usr/include/bits/posix_opt.h
.......... /usr/include/bits/environments.h
........... /usr/include/bits/wordsize.h
.......... /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/stddef.h
.......... /usr/include/bits/confname.h
.......... /usr/include/getopt.h
....... /usr/include/boost/config/suffix.hpp
........ /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/limits.h
......... /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/syslimits.h
.......... /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/limits.h
........... /usr/include/limits.h
............ /usr/include/bits/posix1_lim.h
............. /usr/include/bits/local_lim.h
.............. /usr/include/linux/limits.h
............ /usr/include/bits/posix2_lim.h
............ /usr/include/bits/xopen_lim.h
............. /usr/include/bits/stdio_lim.h
...... /usr/include/boost/detail/workaround.hpp
..... /usr/include/boost/preprocessor/seq/for_each.hpp
...... /usr/include/boost/preprocessor/arithmetic/dec.hpp
....... /usr/include/boost/preprocessor/config/config.hpp
...... /usr/include/boost/preprocessor/repetition/for.hpp
....... /usr/include/boost/preprocessor/cat.hpp
....... /usr/include/boost/preprocessor/debug/error.hpp
....... /usr/include/boost/preprocessor/detail/auto_rec.hpp
........ /usr/include/boost/preprocessor/control/iif.hpp
....... /usr/include/boost/preprocessor/repetition/detail/for.hpp
........ /usr/include/boost/preprocessor/control/expr_iif.hpp
........ /usr/include/boost/preprocessor/logical/bool.hpp
........ /usr/include/boost/preprocessor/tuple/eat.hpp
...... /usr/include/boost/preprocessor/seq/seq.hpp
....... /usr/include/boost/preprocessor/seq/elem.hpp
........ /usr/include/boost/preprocessor/facilities/empty.hpp
...... /usr/include/boost/preprocessor/seq/size.hpp
...... /usr/include/boost/preprocessor/tuple/elem.hpp
...... /usr/include/boost/preprocessor/tuple/rem.hpp
..... /usr/include/boost/call_traits.hpp
...... /usr/include/boost/detail/call_traits.hpp
....... /usr/include/boost/type_traits/is_arithmetic.hpp
........ /usr/include/boost/type_traits/is_integral.hpp
......... /usr/include/boost/type_traits/detail/bool_trait_def.hpp
.......... /usr/include/boost/type_traits/detail/template_arity_spec.hpp
........... /usr/include/boost/mpl/int.hpp
............ /usr/include/boost/mpl/int_fwd.hpp
............. /usr/include/boost/mpl/aux_/adl_barrier.hpp
.............. /usr/include/boost/mpl/aux_/config/adl.hpp
............... /usr/include/boost/mpl/aux_/config/msvc.hpp
............... /usr/include/boost/mpl/aux_/config/intel.hpp
............... /usr/include/boost/mpl/aux_/config/gcc.hpp
............... /usr/include/boost/mpl/aux_/config/workaround.hpp
............. /usr/include/boost/mpl/aux_/nttp_decl.hpp
.............. /usr/include/boost/mpl/aux_/config/nttp.hpp
............ /usr/include/boost/mpl/aux_/integral_wrapper.hpp
............. /usr/include/boost/mpl/integral_c_tag.hpp
.............. /usr/include/boost/mpl/aux_/config/static_constant.hpp
............. /usr/include/boost/mpl/aux_/static_cast.hpp
........... /usr/include/boost/mpl/aux_/template_arity_fwd.hpp
........... /usr/include/boost/mpl/aux_/preprocessor/params.hpp
............ /usr/include/boost/mpl/aux_/config/preprocessor.hpp
............ /usr/include/boost/preprocessor/comma_if.hpp
............. /usr/include/boost/preprocessor/punctuation/comma_if.hpp
.............. /usr/include/boost/preprocessor/control/if.hpp
.............. /usr/include/boost/preprocessor/punctuation/comma.hpp
............ /usr/include/boost/preprocessor/repeat.hpp
............. /usr/include/boost/preprocessor/repetition/repeat.hpp
.............. /usr/include/boost/preprocessor/detail/auto_rec.hpp
............ /usr/include/boost/preprocessor/inc.hpp
............. /usr/include/boost/preprocessor/arithmetic/inc.hpp
........... /usr/include/boost/mpl/aux_/config/lambda.hpp
............ /usr/include/boost/mpl/aux_/config/ttp.hpp
............ /usr/include/boost/mpl/aux_/config/ctps.hpp
........... /usr/include/boost/mpl/aux_/config/overload_resolution.hpp
.......... /usr/include/boost/type_traits/integral_constant.hpp
........... /usr/include/boost/mpl/bool.hpp
............ /usr/include/boost/mpl/bool_fwd.hpp
........... /usr/include/boost/mpl/integral_c.hpp
............ /usr/include/boost/mpl/integral_c_fwd.hpp
............ /usr/include/boost/mpl/aux_/integral_wrapper.hpp
.......... /usr/include/boost/mpl/aux_/lambda_support.hpp
......... /usr/include/boost/type_traits/detail/bool_trait_undef.hpp
........ /usr/include/boost/type_traits/is_float.hpp
......... /usr/include/boost/type_traits/detail/bool_trait_def.hpp
.......... /usr/include/boost/type_traits/detail/template_arity_spec.hpp
......... /usr/include/boost/type_traits/detail/bool_trait_undef.hpp
........ /usr/include/boost/type_traits/detail/ice_or.hpp
........ /usr/include/boost/type_traits/detail/bool_trait_def.hpp
......... /usr/include/boost/type_traits/detail/template_arity_spec.hpp
........ /usr/include/boost/type_traits/detail/bool_trait_undef.hpp
....... /usr/include/boost/type_traits/is_pointer.hpp
........ /usr/include/boost/type_traits/is_member_pointer.hpp
......... /usr/include/boost/type_traits/config.hpp
......... /usr/include/boost/type_traits/is_member_function_pointer.hpp
.......... /usr/include/boost/type_traits/detail/is_mem_fun_pointer_impl.hpp
.......... /usr/include/boost/type_traits/detail/bool_trait_def.hpp
........... /usr/include/boost/type_traits/detail/template_arity_spec.hpp
.......... /usr/include/boost/type_traits/detail/bool_trait_undef.hpp
......... /usr/include/boost/type_traits/detail/bool_trait_def.hpp
.......... /usr/include/boost/type_traits/detail/template_arity_spec.hpp
......... /usr/include/boost/type_traits/detail/bool_trait_undef.hpp
........ /usr/include/boost/type_traits/detail/ice_and.hpp
........ /usr/include/boost/type_traits/detail/ice_not.hpp
........ /usr/include/boost/type_traits/detail/bool_trait_def.hpp
......... /usr/include/boost/type_traits/detail/template_arity_spec.hpp
........ /usr/include/boost/type_traits/detail/bool_trait_undef.hpp
..... /usr/include/boost/type_traits/add_pointer.hpp
...... /usr/include/boost/type_traits/remove_reference.hpp
....... /usr/include/boost/type_traits/broken_compiler_spec.hpp
....... /usr/include/boost/type_traits/detail/type_trait_def.hpp
........ /usr/include/boost/type_traits/detail/template_arity_spec.hpp
....... /usr/include/boost/type_traits/detail/type_trait_undef.hpp
...... /usr/include/boost/type_traits/detail/type_trait_def.hpp
....... /usr/include/boost/type_traits/detail/template_arity_spec.hpp
...... /usr/include/boost/type_traits/detail/type_trait_undef.hpp
..... /usr/include/boost/type_traits/add_const.hpp
...... /usr/include/boost/type_traits/detail/type_trait_def.hpp
....... /usr/include/boost/type_traits/detail/template_arity_spec.hpp
...... /usr/include/boost/type_traits/detail/type_trait_undef.hpp
..... /usr/include/boost/utility/addressof.hpp
..... /usr/include/c++/4.0.2/iosfwd
...... /usr/include/c++/4.0.2/x86_64-linux-gnu/bits/c++locale.h
....... /usr/include/c++/4.0.2/cstring
........ /usr/include/string.h
......... /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/stddef.h
....... /usr/include/c++/4.0.2/cstdio
........ /usr/include/stdio.h
......... /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/stddef.h
......... /usr/include/libio.h
.......... /usr/include/_G_config.h
........... /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/stddef.h
........... /usr/include/wchar.h
............ /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/stddef.h
............ /usr/include/bits/wchar.h
........... /usr/include/gconv.h
............ /usr/include/wchar.h
............. /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/stddef.h
............ /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/stddef.h
.......... /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/stdarg.h
......... /usr/include/bits/stdio_lim.h
......... /usr/include/bits/sys_errlist.h
....... /usr/include/c++/4.0.2/clocale
........ /usr/include/locale.h
......... /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/stddef.h
......... /usr/include/bits/locale.h
....... /usr/include/langinfo.h
........ /usr/include/nl_types.h
........ /usr/include/bits/locale.h
....... /usr/include/iconv.h
........ /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/stddef.h
....... /usr/include/libintl.h
...... /usr/include/c++/4.0.2/x86_64-linux-gnu/bits/c++io.h
....... /usr/include/c++/4.0.2/x86_64-linux-gnu/bits/gthr.h
........ /usr/include/c++/4.0.2/x86_64-linux-gnu/bits/gthr-default.h
......... /usr/include/pthread.h
.......... /usr/include/sched.h
........... /usr/include/time.h
........... /usr/include/bits/sched.h
.......... /usr/include/time.h
........... /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/stddef.h
........... /usr/include/bits/time.h
.......... /usr/include/signal.h
........... /usr/include/bits/sigset.h
.......... /usr/include/bits/setjmp.h
........... /usr/include/bits/wordsize.h
.......... /usr/include/bits/wordsize.h
...... /usr/include/c++/4.0.2/cctype
....... /usr/include/ctype.h
...... /usr/include/c++/4.0.2/bits/stringfwd.h
...... /usr/include/c++/4.0.2/bits/postypes.h
....... /usr/include/c++/4.0.2/cwchar
........ /usr/include/c++/4.0.2/ctime
........ /usr/include/wchar.h
......... /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/stdarg.h
......... /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/stddef.h
....... /usr/include/stdint.h
........ /usr/include/bits/wordsize.h
...... /usr/include/c++/4.0.2/bits/functexcept.h
....... /usr/include/c++/4.0.2/exception_defines.h
..... /usr/include/boost/test/detail/suppress_warnings.hpp
..... /usr/include/boost/test/detail/enable_warnings.hpp
.... /usr/include/boost/test/utils/wrap_stringstream.hpp
..... /usr/include/c++/4.0.2/sstream
...... /usr/include/c++/4.0.2/istream
....... /usr/include/c++/4.0.2/ios
........ /usr/include/c++/4.0.2/exception
........ /usr/include/c++/4.0.2/bits/char_traits.h
......... /usr/include/c++/4.0.2/bits/stl_algobase.h
.......... /usr/include/c++/4.0.2/climits
........... /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/limits.h
.......... /usr/include/c++/4.0.2/bits/cpp_type_traits.h
.......... /usr/include/c++/4.0.2/bits/stl_iterator_base_types.h
.......... /usr/include/c++/4.0.2/bits/stl_iterator_base_funcs.h
........... /usr/include/c++/4.0.2/bits/concept_check.h
.......... /usr/include/c++/4.0.2/bits/stl_iterator.h
.......... /usr/include/c++/4.0.2/debug/debug.h
........... /usr/include/c++/4.0.2/cassert
............ /usr/include/assert.h
........... /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/stddef.h
........ /usr/include/c++/4.0.2/bits/localefwd.h
........ /usr/include/c++/4.0.2/bits/ios_base.h
......... /usr/include/c++/4.0.2/bits/atomicity.h
.......... /usr/include/c++/4.0.2/x86_64-linux-gnu/bits/atomic_word.h
......... /usr/include/c++/4.0.2/bits/locale_classes.h
.......... /usr/include/c++/4.0.2/string
........... /usr/include/c++/4.0.2/memory
............ /usr/include/c++/4.0.2/bits/allocator.h
............. /usr/include/c++/4.0.2/x86_64-linux-gnu/bits/c++allocator.h
.............. /usr/include/c++/4.0.2/ext/mt_allocator.h
............... /usr/include/c++/4.0.2/new
............ /usr/include/c++/4.0.2/bits/stl_construct.h
............ /usr/include/c++/4.0.2/bits/stl_uninitialized.h
............ /usr/include/c++/4.0.2/bits/stl_raw_storage_iter.h
............ /usr/include/c++/4.0.2/limits
........... /usr/include/c++/4.0.2/bits/stl_function.h
........... /usr/include/c++/4.0.2/bits/basic_string.h
........... /usr/include/c++/4.0.2/algorithm
............ /usr/include/c++/4.0.2/bits/stl_algo.h
............. /usr/include/c++/4.0.2/bits/stl_heap.h
............. /usr/include/c++/4.0.2/bits/stl_tempbuf.h
........... /usr/include/c++/4.0.2/bits/basic_string.tcc
........ /usr/include/c++/4.0.2/streambuf
......... /usr/include/c++/4.0.2/bits/streambuf.tcc
........ /usr/include/c++/4.0.2/bits/basic_ios.h
......... /usr/include/c++/4.0.2/bits/streambuf_iterator.h
......... /usr/include/c++/4.0.2/bits/locale_facets.h
.......... /usr/include/c++/4.0.2/cwctype
........... /usr/include/wctype.h
............ /usr/lib/gcc/x86_64-linux-gnu/4.0.2/include/stddef.h
.......... /usr/include/c++/4.0.2/x86_64-linux-gnu/bits/ctype_base.h
.......... /usr/include/c++/4.0.2/x86_64-linux-gnu/bits/ctype_inline.h
.......... /usr/include/c++/4.0.2/bits/codecvt.h
.......... /usr/include/c++/4.0.2/x86_64-linux-gnu/bits/time_members.h
.......... /usr/include/c++/4.0.2/x86_64-linux-gnu/bits/messages_members.h
......... /usr/include/c++/4.0.2/bits/basic_ios.tcc
....... /usr/include/c++/4.0.2/bits/istream.tcc
........ /usr/include/c++/4.0.2/locale
......... /usr/include/c++/4.0.2/bits/locale_facets.tcc
.......... /usr/include/c++/4.0.2/typeinfo
........ /usr/include/c++/4.0.2/ostream
......... /usr/include/c++/4.0.2/bits/ostream.tcc
...... /usr/include/c++/4.0.2/bits/sstream.tcc
....... /usr/include/c++/4.0.2/sstream
..... /usr/include/boost/test/detail/suppress_warnings.hpp
..... /usr/include/boost/test/detail/enable_warnings.hpp
.... /usr/include/boost/test/utils/basic_cstring/basic_cstring.hpp
..... /usr/include/boost/test/utils/basic_cstring/basic_cstring_fwd.hpp
..... /usr/include/boost/test/utils/basic_cstring/bcs_char_traits.hpp
...... /usr/include/boost/test/detail/suppress_warnings.hpp
...... /usr/include/boost/test/detail/enable_warnings.hpp
..... /usr/include/boost/test/detail/suppress_warnings.hpp
..... /usr/include/boost/test/detail/enable_warnings.hpp
.... /usr/include/boost/shared_ptr.hpp
..... /usr/include/boost/assert.hpp
...... /usr/include/assert.h
..... /usr/include/boost/checked_delete.hpp
..... /usr/include/boost/throw_exception.hpp
..... /usr/include/boost/detail/shared_count.hpp
...... /usr/include/boost/detail/bad_weak_ptr.hpp
...... /usr/include/boost/detail/sp_counted_base.hpp
....... /usr/include/boost/detail/sp_counted_base_gcc_x86.hpp
...... /usr/include/boost/detail/sp_counted_impl.hpp
...... /usr/include/c++/4.0.2/functional
.... /usr/include/boost/test/detail/suppress_warnings.hpp
.... /usr/include/boost/test/detail/enable_warnings.hpp
... /usr/include/boost/test/detail/global_typedef.hpp
.... /usr/include/boost/test/detail/suppress_warnings.hpp
.... /usr/include/boost/test/detail/enable_warnings.hpp
... /usr/include/boost/test/detail/workaround.hpp
.... /usr/include/c++/4.0.2/iterator
..... /usr/include/c++/4.0.2/bits/stream_iterator.h
.... /usr/include/boost/test/detail/suppress_warnings.hpp
.... /usr/include/boost/test/detail/enable_warnings.hpp
... /usr/include/boost/test/utils/basic_cstring/io.hpp
.... /usr/include/boost/test/detail/suppress_warnings.hpp
.... /usr/include/boost/test/detail/enable_warnings.hpp
... /usr/include/boost/preprocessor/seq/enum.hpp
... /usr/include/boost/preprocessor/arithmetic/add.hpp
.... /usr/include/boost/preprocessor/control/while.hpp
..... /usr/include/boost/preprocessor/detail/auto_rec.hpp
..... /usr/include/boost/preprocessor/list/fold_left.hpp
...... /usr/include/boost/preprocessor/control/while.hpp
...... /usr/include/boost/preprocessor/detail/auto_rec.hpp
...... /usr/include/boost/preprocessor/list/detail/fold_left.hpp
....... /usr/include/boost/preprocessor/list/adt.hpp
........ /usr/include/boost/preprocessor/detail/is_binary.hpp
......... /usr/include/boost/preprocessor/detail/check.hpp
........ /usr/include/boost/preprocessor/logical/compl.hpp
..... /usr/include/boost/preprocessor/list/fold_right.hpp
...... /usr/include/boost/preprocessor/detail/auto_rec.hpp
...... /usr/include/boost/preprocessor/list/detail/fold_right.hpp
....... /usr/include/boost/preprocessor/list/reverse.hpp
..... /usr/include/boost/preprocessor/logical/bitand.hpp
..... /usr/include/boost/preprocessor/control/detail/while.hpp
... /usr/include/boost/limits.hpp
... /usr/include/boost/type_traits/is_array.hpp
.... /usr/include/boost/type_traits/detail/bool_trait_def.hpp
..... /usr/include/boost/type_traits/detail/template_arity_spec.hpp
.... /usr/include/boost/type_traits/detail/bool_trait_undef.hpp
... /usr/include/boost/type_traits/is_function.hpp
.... /usr/include/boost/type_traits/is_reference.hpp
..... /usr/include/boost/type_traits/detail/bool_trait_def.hpp
...... /usr/include/boost/type_traits/detail/template_arity_spec.hpp
..... /usr/include/boost/type_traits/detail/bool_trait_undef.hpp
.... /usr/include/boost/type_traits/detail/false_result.hpp
.... /usr/include/boost/type_traits/detail/is_function_ptr_helper.hpp
.... /usr/include/boost/type_traits/detail/bool_trait_def.hpp
..... /usr/include/boost/type_traits/detail/template_arity_spec.hpp
.... /usr/include/boost/type_traits/detail/bool_trait_undef.hpp
... /usr/include/boost/mpl/or.hpp
.... /usr/include/boost/mpl/aux_/config/use_preprocessed.hpp
.... /usr/include/boost/mpl/aux_/nested_type_wknd.hpp
.... /usr/include/boost/mpl/aux_/na_spec.hpp
..... /usr/include/boost/mpl/lambda_fwd.hpp
...... /usr/include/boost/mpl/void_fwd.hpp
...... /usr/include/boost/mpl/aux_/na.hpp
....... /usr/include/boost/mpl/aux_/na_fwd.hpp
...... /usr/include/boost/mpl/aux_/lambda_arity_param.hpp
..... /usr/include/boost/mpl/aux_/arity.hpp
...... /usr/include/boost/mpl/aux_/config/dtp.hpp
..... /usr/include/boost/mpl/aux_/preprocessor/enum.hpp
..... /usr/include/boost/mpl/aux_/preprocessor/def_params_tail.hpp
...... /usr/include/boost/mpl/limits/arity.hpp
...... /usr/include/boost/preprocessor/logical/and.hpp
...... /usr/include/boost/preprocessor/identity.hpp
....... /usr/include/boost/preprocessor/facilities/identity.hpp
...... /usr/include/boost/preprocessor/empty.hpp
...... /usr/include/boost/preprocessor/arithmetic/sub.hpp
..... /usr/include/boost/mpl/aux_/config/eti.hpp
.... /usr/include/boost/mpl/aux_/include_preprocessed.hpp
..... /usr/include/boost/mpl/aux_/config/compiler.hpp
..... /usr/include/boost/preprocessor/stringize.hpp
..... /usr/include/boost/mpl/aux_/preprocessed/gcc/or.hpp
... /usr/include/boost/test/detail/suppress_warnings.hpp
... /usr/include/boost/test/detail/enable_warnings.hpp
.. /usr/include/boost/test/unit_test_suite.hpp
... /usr/include/boost/test/utils/callback.hpp
.... /usr/include/boost/test/detail/suppress_warnings.hpp
.... /usr/include/boost/test/detail/enable_warnings.hpp
... /usr/include/boost/test/detail/fwd_decl.hpp
... /usr/include/c++/4.0.2/list
.... /usr/include/c++/4.0.2/bits/stl_list.h
.... /usr/include/c++/4.0.2/bits/list.tcc
... /usr/include/c++/4.0.2/vector
.... /usr/include/c++/4.0.2/bits/stl_vector.h
.... /usr/include/c++/4.0.2/bits/stl_bvector.h
.... /usr/include/c++/4.0.2/bits/vector.tcc
... /usr/include/boost/test/detail/suppress_warnings.hpp
... /usr/include/boost/test/detail/enable_warnings.hpp
unit_test_example_04.cpp:15: error: expected constructor, destructor, or type
conversion before ‘(’ token
unit_test_example_04.cpp:17: error: expected constructor, destructor, or type
conversion before ‘(’ token
unit_test_example_04.cpp:25: error: expected constructor, destructor, or type
conversion before ‘(’ token
unit_test_example_04.cpp:34: error: expected constructor, destructor, or type
conversion before ‘;’ token
unit_test_example_04.cpp:39: error: expected constructor, destructor, or type
conversion before ‘(’ token
unit_test_example_04.cpp:48: error: expected constructor, destructor, or type
conversion before ‘(’ token
unit_test_example_04.cpp:51: error: expected constructor, destructor, or type
conversion before ‘(’ token
unit_test_example_04.cpp:58: error: expected constructor, destructor, or type
conversion before ‘;’ token
mloskot_at_dog:~/dev/boost/_cvs/boost/libs/test/example$

Best regards

--
Mateusz Loskot
http://mateusz.loskot.net

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net