`ios_base' undeclared 错误及解决


本来可编译的代码,换了个低版本的RedHat就报错: “`ios_base' undeclared (first use this function)”

估计是低版本的g++所配的libstdc++有问题,但不知如何简单的解决。

还好一搜就查到一个帖子: http://mailman.powerdns.com/pipermail/pdns-users/2003-October/000771.html

Hmm, ios_base is defined in the C++ standard, but it isn't supported by g++
2.95.x. You can replace "ios_base" with "ios" to make it compile with g++
2.95.x (that's what I have done to make it compile on Debian woody).
照样改一下就好了。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值