LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 736|回复: 3

About the path of "#include <xxx.h>" in C/C++

[复制链接]
发表于 2005-12-30 10:32:57 | 显示全部楼层 |阅读模式
Hi guys
   Maybe this question  is very low level and easy , At presently, I am sure that the follow head file in /usr/lib/qt-3.3/include;
#include <qapplication.h>
#include <qsqldatabase.h>
#include "../connection.h"
.....
But such error message  always appear, I usually stuck in the problem, so I am ugent to resolve it by other helps:
[root@root Test]# make
if gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"test\" -DVERSION=\"1.0\"  -I. -I.     -g -O2 -MT test.o -MD -MP -MF ".deps/test.Tpo" -c -o test.o test.c; \
then mv -f ".deps/test.Tpo" ".deps/test.Po"; else rm -f ".deps/test.Tpo"; exit 1; fi
test.c:2:26: qapplication.h: No such file or directory
test.c:3:26: qsqldatabase.h: No such file or directory
test.c:4:27: ../connection.h: No such file or directory
....
What is this problem? Anybody give me suggestion ?
Thanks in advanced
 楼主| 发表于 2005-12-30 13:30:52 | 显示全部楼层

Continue ask

I tried other head files(i.e standard I/O c libs) but QT's ,As a result , Evrythins goes well. So I think that it might be caused by setting of QT. Well,
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-30 14:28:11 | 显示全部楼层
输入这段中文好辛苦,不停的搜索不停的复制.这个问题有解MA?
回复 支持 反对

使用道具 举报

发表于 2005-12-30 17:58:58 | 显示全部楼层
似乎要加参数
-I/usr/lib/qt-3.3/include
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表