原因是gcc版本比较新,而cuda的版本比较低
解决办法
That flag was not added until a later version of g++
(4.7) to get the gcc 4.4 compat (as much as was there) you need to use the -std=c++0x
flag.
参考:http://stackoverflow.com/questions/27341599/cc1plus-error-unrecognized-command-line-option-std-c11