title: Building libraries containing CUDA thrust code
body: <p>With CUDA 5 it is now possible to build libraries containing cuda code and link with nvcc.</p>
  
  <p>Thrust consisting of only header files results in multiple definition errors when linked in this situation.</p>
  
  <p>Is there anyway around this problem without going through and converting thrust to header and code files and building it as a library?</p>