|
Boost Users : |
From: Tim Allison (tallison_at_[hidden])
Date: 2008-02-28 12:18:50
> ------------------------------
>
> Message: 4
> Date: Thu, 28 Feb 2008 16:56:15 +0000 (UTC)
> From: Gennadiy Rozental <rogeeff_at_[hidden]>
> Subject: Re: [Boost-users] A request for help using the Boost Unit
> Test Library
> To: boost-users_at_[hidden]
> Message-ID: <loom.20080228T165213-642_at_[hidden]>
> Content-Type: text/plain; charset=us-ascii
>
> 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.
I am using Gnu compiler 4.1.3-29. I have reduced the number of
switches, so that the actual line used to build is:
g++ -g -I../lib -I/usr/X11R6/include -I../../../source/ecs/shared
-DOS_IS_LINUX -c FuserTests.cc
Tim Allison
>
> 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