|
Boost Users : |
From: Langston, Matthew David (langston_at_[hidden])
Date: 2004-03-31 13:29:05
I'm trying to create a simple unit test (using the Unit Test Framework) using boost 1.31.0 + win32 + vc71, but I get the following linker error due to the undefined symbol __imp___CrtSetReportHook:
tests error LNK2019: unresolved external symbol __imp___CrtSetReportHook referenced in function "public: int __thiscall boost::execution_monitor::execute(bool,int)" (?execute_at_execution_monitor_at_boost@@QAEH_NH_at_Z)
There was mention of this undefined symbol (__imp___CrtSetReportHook) in this thread: http://lists.boost.org/MailArchives/boost/msg43787.php. However, that post was concerning the Metrowerks compiler, but I am using Microsoft's vc71 compiler.
Can someone help me resolve this undefined symbol (__imp___CrtSetReportHook) problem? Here is my simple "unit test suite" that I am trying to build:
#include <boost/test/unit_test.hpp>
#include <boost/test/included/unit_test_framework.hpp>
using boost::unit_test_framework::test_suite;
void test_GleamData()
{
BOOST_CHECK(2 == 1); // non-critical test => continue after failure }
test_suite*
init_unit_test_suite( int, char* [] )
{
test_suite* test = BOOST_TEST_SUITE( "GleamAnalysis Test Suite" );
test -> add( BOOST_TEST_CASE( &test_GleamData ), 1 /* expected one error */ );
return test;
}
Warmest regards, Matt
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