usr/include/c++/6.4.1/bits/stl_relops.:67: Parse error at "std"

在编译32位Qt工程时遇到特定错误,错误信息涉及到`usr/include/c++/6.4.1/bits/stl_relops.h:67`,而64位编译则无此问题。根据论坛讨论,问题可能与Qt版本有关,但尽管环境中Qt版本已是5.7,错误依然存在。对比最近的代码提交,发现新增的`.qmake.stash`文件可能是原因,移除这两个文件后编译恢复正常。问题的根源还有待进一步调查。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题描述:

1.编译某qt工程的32位架构二进制包时,出现了上面错误,具体错误信息如下

qmake-qt5 -o ProductLicense/Makefile ProductLicense/ProductLicense.pro CONFIG+=debug
Scanning directory '/builddir/build/BUILD/anaconda-26.48.21/welcome-src/ProductLicense'...
Updating 'productlicense_cn.ts'...
    Found 7 source text(s) (0 new and 7 already existing)
Scanning directory '/builddir/build/BUILD/anaconda-26.48.21/welcome-src/ProductLicense'...
Updating 'productlicense_en.ts'...
    Found 7 source text(s) (0 new and 7 already existing)
Updating 'productlicense_cn.qm'...
    Generated 5 translation(s) (5 finished and 0 unfinished)
    Ignored 2 untranslated source text(s)
Updating 'productlicense_en.qm'...
    Generated 5 translation(s) (5 finished and 0 unfinished)
    Ignored 2 untranslated source text(s)
/usr/bin/make -
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值