- 论坛徽章:
- 0
|
g++ test.cpp 编译时报错 test.cpp在本地虚拟机上,编译没有报错。真实机上编译
报错如下:
/usr/lib/gcc/x86_64-redhat-linux/3.4.3/../../../../include/c++/3.4.3/bits/locale_facets.h: At global scope:
/usr/lib/gcc/x86_64-redhat-linux/3.4.3/../../../../include/c++/3.4.3/bits/locale_facets.h:66: error: expected `,' or `...' before '&' token
/usr/lib/gcc/x86_64-redhat-linux/3.4.3/../../../../include/c++/3.4.3/bits/locale_facets.h:72: error: expected `,' or `...' before '&' token
/usr/lib/gcc/x86_64-redhat-linux/3.4.3/../../../../include/c++/3.4.3/bits/locale_facets.h:77: error: expected `,' or `...' before '&' token
/usr/lib/gcc/x86_64-redhat-linux/3.4.3/../../../../include/c++/3.4.3/bits/locale_facets.h:82: error: expected `,' or `...' before '&' token
In file included from /usr/lib/gcc/x86_64-redhat-linux/3.4.3/../../../../include
不知道为什么,就只有一台64位(redhat)机子可以编译,其它三台都不能编译。 其它三台是全部安装的,还出不能编译的现象,让我费解。 |
|