|
Boost Users : |
Subject: Re: [Boost-users] Boost documentation simple example fails
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2010-06-07 15:22:07
<hmiller <at> hiwaay.net> writes:
> #include <my_class.hpp>
> #define BOOST_TEST_MODULE MyTest
> #include <boost/test/unit_test.hpp>
>
> BOOST_AUTO_TEST_CASE( my_test )
...
> test_my_class.cpp:5: error: expected constructor, destructor, or type
> conversion before '(' token
Try:
1. move your include after boost.Test
2. Produce preprocessor output. See what is on line 5
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