Boost logo

Boost :

From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2007-12-11 01:37:34


"Dave Jenkins" <david_at_[hidden]> wrote in message
news:fivsn4$vr8$1_at_ger.gmane.org...
>> If it compiles it should work fine. The exception is implemented in the
>> library.
>
> Oops, maybe I should have compiled the library with /clr too.
>
> Anyway, here is an example command line and program to
> duplicate the problem under msvc-8.0:
> Thanks,
> Dave Jenkins
>
> cl /clr test_1.cpp -I%BOOST_ROOT% /link
> libboost_unit_test_framework-vc80-mt-1_35.lib /ENTRY:main
>
> // test_1.cpp
> #include <boost/test/unit_test.hpp>
> // #include <boost/test/execution_monitor.hpp>
> void test1() {}
> using namespace boost::unit_test;
> test_suite* init_unit_test_suite( int argc, char* argv[] )
> {
> test_suite *test = BOOST_TEST_SUITE("test1");
> test->add(BOOST_TEST_CASE(&test1));
> return test;
> }

I have no problems compiling and linking this example with regular options.
I know very little about CLR, but I would guess library and executable
compilation options should coincide.

Gennadiy


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