这个问题涉及特定版本的组合,但更普遍地具有相关性。
我刚刚从Kubuntu 12.04升级到14.04。现在,当我想编译CUDA代码(使用CUDA 6.5)时,我会得到以下错误:
#error -- unsupported GNU version! gcc 4.9 and up are not supported!
我安装了gcc-4.8(和4.7),并尝试使用这里建议的在/usr/local/cuda/bin
中使用符号链接的解决方案:
CUDA incompatible with my gcc version
但是这个方法不起作用。我应该怎么办?