- 论坛徽章:
- 0
|
我下载并安装了gcc:
ftp://ftp.software.ibm.com/aix/f ... olbox/RPMS/ppc/gcc/
Install the gcc package:
gcc-4.2.0-3.aix6.1.ppc.rpm,
libgcc-4.2.0-3.aix6.1.ppc.rpm
libstdcplusplus-4.2.0-3.aix6.1.ppc.rpm
libstdcplusplus-devel-4.2.0-3.aix6.1.ppc.rpm
gcc-cplusplus-4.2.0-3.aix6.1.ppc.rpm
可以通过命令查看gcc 版本:"gcc -v"
但是我在配置和编译软件的时候,遇到很多问题,gcc 不支持wstring, 也不能编译<iterator> header.
可是这些都是标准的C++
不知道你们有没有遇到过类似的情况,有没有其他方式安装gcc呢?我其实尝试过其他非官方提供的4.8的gcc,但是总是以为依赖关系不成立就放弃了。
比如下面就是我的出错信息:
from /opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.2.0/include/c++/iosfwd:45,
from /opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.2.0/include/c++/ios:43,
from /opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.2.0/include/c++/ostream:45,
from /opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.2.0/include/c++/iterator:70,
from ../include/wx/arrstr.h:116,
from ../include/wx/wx.h:21,
from ../include/wx/wxprec.h:58:
/opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.2.0/include/c++/cstdio:109: error: '::fgetpos' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.2.0/include/c++/cstdio:111: error: '::fopen' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.2.0/include/c++/cstdio:116: error: '::freopen' has not been declared
/opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/4.2.0/include/c++/cstdio:119: error: '::fsetpos' has not been declared
gmake: *** ![.pch/wxprec_baselib/wx/wxprec.h.gch] Error 1 |
|