免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4188 | 回复: 2

[新手入门] gcc on AIX 6.1 [复制链接]

论坛徽章:
0
发表于 2013-12-06 13:36 |显示全部楼层
我下载并安装了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

论坛徽章:
0
发表于 2013-12-06 18:17 |显示全部楼层
通过其他方式重装了gcc,看起啦OK 了

1.打开网页:
http://www.bullfreeware.com/affichage.php?id=2057
选中:download下面的Binary file with selected dependencies Generate zip
这样就把整个gcc,gcc++和它依赖的包都下载了


2.安装
rpm -ivh * --nodeps

论坛徽章:
2
技术图书徽章
日期:2014-04-23 10:23:38射手座
日期:2014-08-14 17:00:52
发表于 2013-12-09 18:35 |显示全部楼层
mark
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP