title: cuda 5.0 linking with samples .h in Visual Studio 2010
body: <p>I have visual studio 2010 ultimate and cuda toolkit 5.0. the samples work perfectly. VS recognize cuda`s language, syntax and works fine. but when I tried something like this:</p>
  
  <pre><code>#include &lt;helper_functions.h&gt;
  
   #include &lt;stdio.h&gt;
  
   #include &lt;stdio.h&gt;
  
  
    int main()
    {
    return 0;
    }
  </code></pre>
  
  <p>the compiler can't find <code>helper_functions.h</code> (this header file come with the samples and is in <code>C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\common\inc</code> and my program and the samples aren`t in the same directory.)</p>
  
  <p>when I try with the absolute path:</p>
  
  <pre><code>  #include &lt;C:\ProgramData\NVIDIACorporation\CUDASamples\v5.0\common\inc\helper_functions.h&gt;
    #include &lt;stdio.h&gt;
  
  
   int main()
   {
   return 0;
   }
  </code></pre>
  
  <blockquote>
    <p>compiler : exception.h no such file or directory</p>
  </blockquote>
  
  <p><code>helper_functions.h</code> and <code>exception.h</code> are in the same directory.</p>
  
  <p>I know that I have to link them but I don`t know how do that with VS</p>