|
Boost Users : |
Subject: [Boost-users] Boost Unit test on Eclipse
From: Yong Qin (YQIN_99_at_[hidden])
Date: 2011-08-11 12:35:56
I have tried to use boost unit test on Eclipse CDT w/ MinGW and VC++. But I can not link to the static boost library: libboost_unit_test_framework-vc100-mt-1_47.lib.
The code I used:
#defineBOOST_TEST_MAIN
#defineBOOST_TEST_MODULEMasterTestSuite
#include<boost/test/unit_test.hpp>
BOOST_AUTO_TEST_SUITE(FooTests)
BOOST_AUTO_TEST_CASE(ctor_test1)
{
Fooa;
BOOST_CHECK_EQUAL(a.name(),MY_PROJECT_NAMESPACE::Foo::DEF_NAME);
}
BOOST_AUTO_TEST_CASE(ctor_test2)
{
conststd::stringtheName("Blah");
Fooa(theName);
BOOST_CHECK_EQUAL(a.name(),theName);
}
BOOST_AUTO_TEST_SUITE_END()
What is wrong?
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