Boost logo

Boost Users :

From: Tim Allison (tallison_at_[hidden])
Date: 2008-02-21 12:00:26


I am working on a project that uses the Boost Multi-Index library and
Boost shared_ptr, so I know I can use the Boost libraries on our
project. However, I am unable to build so much as an example from the
Boost Unit Test Library, and need help. (I assume the problem is a
conflict with compiler switches, or something along those lines.)

I set up a test directory, into which I will link the source code I wish
to test. The Make file I am using is a modified form of one we use to
build my project, so I know it will build both the module using some
Boost libraries, and our old code, some of which is more than 10 years old.

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).

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. (The examples are both from the patmedia.net/rogeeff site,
and the official boost site, as corrected within the discussion forum.)

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

Is there something special I need to do to get this to compile in C++?

-- 
Tim Allison
Chief Engineer
MIDCON
Millennium Engineering and Integration
(719) 264-4302 Work
(719) 264-4318 Fax

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