Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Makefile 无法识别的命令行选项'-std=c++;11';使用mitlm_Makefile - Fatal编程技术网

Makefile 无法识别的命令行选项'-std=c++;11';使用mitlm

Makefile 无法识别的命令行选项'-std=c++;11';使用mitlm,makefile,Makefile,使用make命令后,出现以下错误。我跟随了苏佩奇 ,但无法解决这个问题 - cc1plus: error: unrecognized command line option '-std=c++11' -cc1plus: error: unrecognized command line option '-std=c++11' -cc1plus: error: unrecognized command line option '-stdlib=libc++' -make[1]: **

使用
make
命令后,出现以下错误。我跟随了苏佩奇 ,但无法解决这个问题

- cc1plus: error: unrecognized command line option '-std=c++11'
    -cc1plus: error: unrecognized command line option '-std=c++11'
    -cc1plus: error: unrecognized command line option '-stdlib=libc++'
-make[1]: *** [src/util/CommandOptions.lo] Error 1
-make[1]: Leaving directory `/home/saddam/softwareforsphinx/MIT-Language-Modeling-Toolkit'`enter code here`
make: *** [all-recursive] Error 1``

基于您的路径名,我觉得您在Mac系统上运行并不太像,因此遵循在Mac系统上解决问题的说明(使用Clang作为编译器,而不是像大多数GNU/Linux系统那样使用GCC)通常不会成功。你使用什么操作系统?显示该错误的编译器行是什么?您安装了什么版本的编译器?请注意,如果您的编译器太旧,它可能会支持C++11。我使用的是ubuntu,编译器是g++,是的,但g++的版本是什么?什么版本的Ubuntu?gcc(Ubuntu4.8.1-2ubuntu1~12.04)4.8.1您好,有人能回答我上面的问题吗