小编Tur*_*000的帖子

将 Ubuntu 升级到 20.04 后,QtCreator 无法识别链接库

我已经从 Ubuntu 18.04 升级到 20.04,除了一些令人讨厌的grub问题之外,大多数东西都是开箱即用的。但是我的 QtCreator ( Qt Creator 4.11.0, Based on Qt 5.12.8 (GCC 9.3.0, 64 bit)) 在识别包含的库时遇到了问题。它在更新前运行良好的项目中显示了数千条错误消息。错误消息看起来都像链接器错误消息。一些例子:

 error: 'std::string' (aka 'int') is not a class, namespace, or enumeration
 error: no matching function for call to 'getline'
 error: member reference base type 'std::ifstream' (aka 'int') is not a structure or union
 error: no template named 'vector' in namespace 'std'
 error: unknown type name 'SystemCallFactory' //this class is from the same  project
Run Code Online (Sandbox Code Playgroud)

甚至 qt 和 std 库中的一些错误: …

gcc qt c++ g++ qt-creator

5
推荐指数
2
解决办法
3441
查看次数

标签 统计

c++ ×1

g++ ×1

gcc ×1

qt ×1

qt-creator ×1