Chinaunix首页 | 论坛 | 博客
  • 博客访问: 39418
  • 博文数量: 10
  • 博客积分: 236
  • 博客等级: 二等列兵
  • 技术积分: 110
  • 用 户 组: 普通用户
  • 注册时间: 2012-11-20 21:15
文章分类
文章存档

2013年(3)

2012年(7)

我的朋友

分类: C/C++

2013-03-30 16:33:35

it is not once that i meet this error ,what ? all the same as the last ?

点击(此处)折叠或打开

  1. ../../../qtsdk-2010.05/qt/include/QtCore/qstring.h:60:22: fatal error: string: No such file or directory
  2. compilation terminated.
  3. make: *** [test.o] Error 1

Yes,it is a Qt project and wrong with that.
OK ?
where is wrong ?
my code:

点击(此处)折叠或打开

  1. #include<QApplication>
  2. #include<QLabel>

  3. int main(int argc,char * argv[]){
  4.   QApplication app(argc,argv);
  5. QLabel * lbl= new QLabel("Hello Qt");
  6. lbl->show();
  7. return app.exec();
  8. }

No error is written  anywhere.
and ?
  env  ?


点击(此处)折叠或打开

  1. export QTDIR=/home/ubuntu/qtsdk-2010.05/qt
  2. export PATH=$QTDIR/bin:$PATH
  3. export MANPATH=$QTDIR/doc/man:$MANPATH
  4. export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
  5. export QMAKESPEC=$QTDIR/mkspecs/linux-g++
it is located under user 's :.bashrc

OK  .no wrong .
but.................
this error is error.....
let 's see again ...what ?string.h ?that is a C++ file ?
yes! my file name is test.c and not test.cpp
that is the reason.ok let's change.





阅读(1729) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~