title: CUDA version X complains about not supporting gcc version Y - what to do?
body: <p><sub>The question is about a specific combination of versions but is relevant more generally.</sub></p>
  
  <p>I've just dist-upgraded from Kubuntu 12.04 to 14.04. Now, when I want to compile CUDA code (with CUDA 6.5), I get:</p>
  
  <pre><code>#error -- unsupported GNU version! gcc 4.9 and up are not supported!
  </code></pre>
  
  <p>I installed gcc-4.8 (and 4.7), and tried to use the symlinks-in-<code>/usr/local/cuda/bin</code> solution suggested here:</p>
  
  <p><a href="https://stackoverflow.com/questions/6622454/cuda-incompatible-with-my-gcc-version">CUDA incompatible with my gcc version</a></p>
  
  <p>but this doesn't work. What should I do?</p>