Boost logo

Boost :

From: Noel Llopis (nll_pub_at_[hidden])
Date: 2004-12-23 22:20:48


I suspect the answer to this is going to be really simple, but I've been
trying to figure it out for several hours and I'm ready to give up (I
couldn't even find a mention of the problem in the mailing list archives).

All I want to do is use the Boost Unit Test library with gcc under Linux. I
have Boost 1.32 correctly installed (I've used other libraries successfully
without any problems).

Now I simply try to compile the simplest possible example:
http://www.boost.org/libs/test/example/unit_test_example1.cpp

This is what I get:
gcc -o test boost_test.cpp
boost_test.cpp:11: error: `boost::unit_test' has not been declared
boost_test.cpp:11: error: expected nested-name-specifier before "test_suite"
boost_test.cpp:11: error: `test_suite' has not been declared
boost_test.cpp:23: error: expected constructor, destructor, or type
conversion before '*' token
boost_test.cpp:23: error: expected `,' or `;' before '*' token

boost::unit_test has not been declared??? How is that possible? The compiler
is correctly including the boost/test/unit_test.hpp file from the first
line of the program. What am I missing? It must be something really, really
stupid. I can tell :-)

Happy holidays everyone!

--Noel
Games from Within
http://www.gamesfromwithin.com


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk