Linux 使用 Qt 报错:“error:‘type_traits‘ file not found in file include.“ 解决方法
·
由于其他环境需要使用 gcc 12 于是就升级了 gcc 版本为 gcc 12 。但升级之后 Qt 编译不了了,老是报错:"error:'type_traits' file not found in file include." 网上搜来的解决方法如下:
sudo apt-get install libstdc++-12-dev
安装完毕即可成功编译Qt项目。
更多推荐
所有评论(0)