Qt子程序调用中header file的问题

weixin_43063526 2020-05-19 10:16:36
Qt新手想请教一下问题:

我在Qt里面放了两个子程序,这里称呼A和B,然后A里include了比较复杂的其他header file,在B里面用A的函数显示找不到A引用的那些header file,这个是因为没有正确引用吗?还是说B调用A的时候,其他的那些header file也要一起include?

In file included from ../../../test_STF/sub_Editor/mainwindow.cpp:7:
../../../test_STF/sub_Editor/../../test_STF/clearComStf/src/clearstf.h:7:10: fatal error: 'io/tokenscanner.h' file not found
#include <io/tokenscanner.h>
^~~~~~~~~~~~~~~~~~~
1 error generated.
make[1]: *** [mainwindow.o] Error 1
make: *** [sub-sub_Editor-Editor-pro-make_first] Error 2
10:05:49: 进程"/usr/bin/make"退出,退出代码 2 。
Error while building/deploying project test_STF (kit: Desktop Qt 5.12.8 clang 64bit)
When executing step "Make"
...全文
59 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

24,854

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧