title: Using Intel TBB in debug mode
body: <p>I am trying to debug a C++ code using Intel Thread Building Blocks, with the procedure I have found here 
  <a href="https://stackoverflow.com/questions/32887113/debugging-in-threading-building-blocks/33088351#33088351">Debugging in threading building Blocks</a>.
  My question is related to the following sentence.</p>
  
  <blockquote>
    <p>Be sure to compile with the macro TBB_USE_DEBUG set to 1 so that TBB's checking will be enabled.</p>
  </blockquote>
  
  <p>I have added the macro <code>#define TBB_USE_DEBUG 1</code>
  at the beginning of my main function. However, when compiling I get the following warning </p>
  
  <pre><code>warning: "TBB_USE_DEBUG" redefined
   #define TBB_USE_DEBUG 1
  /usr/include/tbb/tbb_config.h:287:0: note: this is the location of the previous definition
   #define TBB_USE_DEBUG 0
  </code></pre>
  
  <p>Hence my two questions:</p>
  
  <ul>
  <li>Did I put the macro at the good place ?</li>
  <li>How can I check that my code indeed linked with the debug library ?</li>
  </ul>