title: Using boost test with Visual Studio
body: <p>I am trying to use Boost Test to add some much needed unit tests to my code. However I can't seem to get it to work. Right now I have the following code</p>
  
  <pre><code>#include &lt;Drawing.h&gt;
  #define BOOST_AUTO_TEST_MAIN
  #define BOOST_TEST_MODULE DrawingModelTests
  #include &lt;boost/test/unit_test.hpp&gt;
  
  BOOST_AUTO_TEST_SUITE(DrawingModelTests)
  
  BOOST_AUTO_TEST_CASE ( DrawingConstructorTest)
  {
      Drawing * drawing = new Drawing;
  
      delete drawing;
  }
  
  BOOST_AUTO_TEST_SUITE_END()
  </code></pre>
  
  <p>From what I understand I don't need to put a main or anything since boost will take care of it himself. However Visual Studio keep giving me a "entry point must be defined" error. Do I need to manually add a link to the static library or something? I am compiling as a standard .exe console application.</p>