Boost logo

Boost Users :

From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2008-02-28 11:56:15


Tim Allison <tallison <at> meicompany.com> writes:

> // each test module could contain no more then one ..... function defined
> // alternatively you could define init function yourself
> #define BOOST_TEST_MAIN
> #include <boost/test/unit_test.hpp>
>
> //___________________________________________________________________//
>
> // most frequently you implement test cases as a .... utomatic registration
> BOOST_AUTO_TEST_CASE( test1 )

You mean to say error is on above line, right?

> The error messages are:
> FuserTests.cc:9: error: expected constructor, destructor, or type
> conversion before '(' token
> FuserTests.cc:18: error: expected constructor, destructor, or type
> conversion before '(' token

What compiler are u using? Can you post compilation command? These errors may
only mean that you doing something funny during compilation and compiler do
not see BOOST_AUTO_TEST_CASE macro.

Gennadiy


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