title: "incorrect inclusion of a cudart header" error on CUDA
body: <p>For mathematical operations, I added to header file</p>
  
  <pre><code>#include &lt;math_functions.h&gt;
  #include &lt;device_functions.h&gt;
  </code></pre>
  
  <p>but when I compiled it, it started to give the below error. What should I do?</p>
  
  <p><strong>p.s.:</strong> CUDA 5.0, VS2010</p>
  
  <blockquote>
    <p>NVIDIA GPU Computing Toolkit\CUDA\v5.0\include\crt/func_macro.h(50):
    fatal error C1189: #error :  -- incorrect inclusion of a cudart header
    file</p>
  </blockquote>