<table cellspacing='0' cellpadding='0' border='0' background='none' style='font-family:arial;font-size:10pt;color:rgb(51, 51, 51);background-color:rgb(255, 255, 255);width:100%;'><tr><td valign='top' style='font: inherit;'>I want to use boost unit test library in kdevelop. The reason is i find boost ubnnit tst library easier to use with comprehensive utilites.. but i m new to kdevelop. I want directory structure to be something like:<br> there shd be two directoris inside src directory <br>1) main //will contain the main code like add.h add.cpp complex.h comlex.cpp main.cpp<br>2) tests //will contain the test code addTest.cpp complesTest.cpp<br>Now here comes the problems:<br>1) the boost test library contains its own main.. we use boost test using only macros. so can i put my main function also in the main directory's main.cpp file.<br>2) how to tell kdevelop to do proper linking and build process<br><br>Here i am atachin a simple program using boost
 unit test framework:<br>//==================<br>//file name : test.cpp<br>//to compile : g++ test.cpp -lboost_unit_test_frameowrk<br><br>#define BOOST_TEST_MODULE MyTest<br>#define BOOST_TEST_DYN_LINK<br>#include <boost/test/unit_test.hpp><br><br>int add( int i, int j ) { return i+j; }<br><br>BOOST_AUTO_TEST_CASE( my_test )<br>{<br>    // seven ways to detect and report the same error:<br>    BOOST_CHECK( add( 2,2 ) == 4 );        // #1 continues on error<br><br>    BOOST_REQUIRE( add( 2,2 ) == 4 );      // #2 throws on error<br><br>    if( add( 2,2 ) != 4 )<br>      BOOST_ERROR( "Ouch..." );            // #3 continues on error<br><br>    if( add( 2,2 ) != 4 )<br>      BOOST_FAIL( "Ouch..."
 );             // #4 throws on error<br><br>    if( add( 2,2 ) != 4 ) throw "Ouch..."; // #5 throws on error<br><br>    <br>}<br><br>//==================<br>Also can anybody tell me how to search this mailing ilst .Are there any plans to integrate boost unit test frameworka as a plugin.<br><br>thanks in advance.<br></td></tr></table><br>Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php