title: TBB concurrent_queue errors
body: <p>Can't seem to compile program with even a mention of concurrent_queue.</p>
  
  <p>code contains this</p>
  
  <pre><code>#include &lt;tbb/concurrent_queue.h&gt;
  </code></pre>
  
  <p>And second I add anywhere in the code</p>
  
  <pre><code>concurrent_queue&lt;int&gt; tbbqueue;
  </code></pre>
  
  <p>This is the error I get on compile. I am able to compile some other tbb related code using tasks etc, but this for some reason is not working.</p>
  
  <pre><code>    g++ -O3 -Wall -pthread -std=c++11 -ltbb -o tbbqueue.o tbbqueue.cpp 
  tbbqueue.cpp: In function ‘void* Agent(void*)’:
  tbbqueue.cpp:46:10: warning: unused variable ‘elements’ [-Wunused-variable]
  tbbqueue.cpp:47:9: warning: unused variable ‘elementsSize’ [-Wunused-variable]
  /tmp/ccQg8OKZ.o: In function `tbb::strict_ppl::internal::concurrent_queue_base_v3&lt;int&gt;::~concurrent_queue_base_v3()':
  tbbqueue.cpp:(.text._ZN3tbb10strict_ppl8internal24concurrent_queue_base_v3IiED2Ev[_ZN3tbb10strict_ppl8internal24concurrent_queue_base_v3IiED5Ev]+0x10): undefined reference to `tbb::internal::NFS_Free(void*)'
  /tmp/ccQg8OKZ.o: In function `tbb::strict_ppl::concurrent_queue&lt;int, tbb::cache_aligned_allocator&lt;int&gt; &gt;::deallocate_block(void*, unsigned long)':
  tbbqueue.cpp:(.text._ZN3tbb10strict_ppl16concurrent_queueIiNS_23cache_aligned_allocatorIiEEE16deallocate_blockEPvm[_ZN3tbb10strict_ppl16concurrent_queueIiNS_23cache_aligned_allocatorIiEEE16deallocate_blockEPvm]+0x4): undefined reference to `tbb::internal::NFS_Free(void*)'
  /tmp/ccQg8OKZ.o: In function `tbb::strict_ppl::concurrent_queue&lt;int, tbb::cache_aligned_allocator&lt;int&gt; &gt;::allocate_block(unsigned long)':
  tbbqueue.cpp:(.text._ZN3tbb10strict_ppl16concurrent_queueIiNS_23cache_aligned_allocatorIiEEE14allocate_blockEm[_ZN3tbb10strict_ppl16concurrent_queueIiNS_23cache_aligned_allocatorIiEEE14allocate_blockEm]+0xf): undefined reference to `tbb::internal::NFS_Allocate(unsigned long, unsigned long, void*)'
  tbbqueue.cpp:(.text._ZN3tbb10strict_ppl16concurrent_queueIiNS_23cache_aligned_allocatorIiEEE14allocate_blockEm[_ZN3tbb10strict_ppl16concurrent_queueIiNS_23cache_aligned_allocatorIiEEE14allocate_blockEm]+0x2b): undefined reference to `tbb::internal::throw_exception_v4(tbb::internal::exception_id)'
  /tmp/ccQg8OKZ.o: In function `tbb::strict_ppl::internal::concurrent_queue_base_v3&lt;int&gt;::~concurrent_queue_base_v3()':
  tbbqueue.cpp:(.text._ZN3tbb10strict_ppl8internal24concurrent_queue_base_v3IiED0Ev[_ZN3tbb10strict_ppl8internal24concurrent_queue_base_v3IiED0Ev]+0x10): undefined reference to `tbb::internal::NFS_Free(void*)'
  /tmp/ccQg8OKZ.o: In function `tbb::strict_ppl::concurrent_queue&lt;int, tbb::cache_aligned_allocator&lt;int&gt; &gt;::~concurrent_queue()':
  tbbqueue.cpp:(.text._ZN3tbb10strict_ppl16concurrent_queueIiNS_23cache_aligned_allocatorIiEEED2Ev[_ZN3tbb10strict_ppl16concurrent_queueIiNS_23cache_aligned_allocatorIiEEED5Ev]+0x12d): undefined reference to `tbb::internal::NFS_Free(void*)'
  /tmp/ccQg8OKZ.o: In function `tbb::strict_ppl::concurrent_queue&lt;int, tbb::cache_aligned_allocator&lt;int&gt; &gt;::~concurrent_queue()':
  tbbqueue.cpp:(.text._ZN3tbb10strict_ppl16concurrent_queueIiNS_23cache_aligned_allocatorIiEEED0Ev[_ZN3tbb10strict_ppl16concurrent_queueIiNS_23cache_aligned_allocatorIiEEED0Ev]+0x12d): undefined reference to `tbb::internal::NFS_Free(void*)'
  /tmp/ccQg8OKZ.o: In function `main':
  tbbqueue.cpp:(.text.startup+0x32): undefined reference to `tbb::internal::NFS_Allocate(unsigned long, unsigned long, void*)'
  collect2: error: ld returned 1 exit status
  make: *** [tbbqueue.o] Error 1
  </code></pre>