when compile /home/wangxiao/NVIDIA-CUDA-7.5 SAMPLES, it warning: gcc version larger than 4.9 not supported, so: old verson of gcc and g++ are needed

1. when compile /home/wangxiao/NVIDIA-CUDA-7.5 SAMPLES, it warning: gcc version larger than 4.9 not supported, so:
old verson of gcc and g++ are needed:

    sudo apt-get install gcc-4.7
    sudo apt-get install g++-4.7    

then, a link needed :

sudo ln -s /usr/bin/gcc-4.7 /usr/local/cuda/bin/gcc
sudo ln -s /usr/bin/g++-4.7 /usr/local/cuda/bin/g++

 

 
posted @ 2016-04-13 09:27  AHU-WangXiao  阅读(235)  评论(0编辑  收藏  举报