Re: [Boost-users] A request for help using the Boost Unit Test Library

I'm sorry, I completely missed your reply. Based on your comment that
the new docs are for 1.34, The contents of FuserTest.cc are cut and
pasted from example 1:
// each test module could contain no more then one 'main' file with init
function defined
// alternatively you could define init function yourself
#define BOOST_TEST_MAIN
#include
Today's Topics:
1. Re: A request for help using the Boost Unit Test Library (Gennadiy Rozental)
----------------------------------------------------------------------
Message: 1 Date: Thu, 21 Feb 2008 20:05:42 +0000 (UTC) From: Gennadiy Rozental
Subject: Re: [Boost-users] A request for help using the Boost Unit Test Library To: boost-users@lists.boost.org Message-ID: Content-Type: text/plain; charset=utf-8 Tim Allison
writes: I am using boost 1.33.1-42 <at> 586 on Suse 10.2 (If it matters, my computer is a Latitude D510) and Gnu compiler 4.1.3-29 <at> 586 (as listed by Smart Package Manager).
The new docs cover Boost.Test starting 1.34
When I run the make file, it echos out the following line: g++ -Wno-deprecated -frepo -m32 -g -I../lib -I/usr/X11R6/include -I../../../source/ecs/shared -DOS_IS_LINUX -c FuserTests.cc
FuserTests.cc is the file into which I have attempted to copy the examples.
Would you care to share with us the file content?
The case I am most interested in running uses BOOST_AUTO_TEST_CASE( functionName ). This line produces the error: FuserTests.cc:16: error: expected constructor, destructor, or type conversion before ?(? token
Obviosly Boost.Test headers are not included.
Gennadiy

Tim Allison
// each test module could contain no more then one ..... function defined // alternatively you could define init function yourself #define BOOST_TEST_MAIN #include
//___________________________________________________________________//
// 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
participants (2)
-
Gennadiy Rozental
-
Tim Allison