title: how to link library (e.g. CUBLAS, CUSPARSE) for CUDA on windows
body: <p>I am trying to compile a cuda program which uses cusparse library. I am getting linking error:  </p>
  
  <pre><code>kernel.cu.obj : error LNK2019: unresolved external symbol _cusparseSetMatIndexBase@8 referenced in function _main
  </code></pre>
  
  <p>And a lot of error of same kind related to cusparse library. I have included "cusparse_v2.h".
  How do i link cusparse library in visual studio 2010 during compilation?</p>