• 4092阅读
  • 0回复

交叉编译问题 [复制链接]

上一主题 下一主题
离线guoxiongmao
 
只看楼主 正序阅读 楼主  发表于: 2008-11-28
— 本帖被 XChinux 执行加亮操作(2008-11-30) —
小弟装好QTE和交叉编译工具之后,编译了下,出现如下问题是什么原因啊,请大侠帮忙
[root@localhost hello]# arm-linux-gcc -o hello hello.cpp
hello.cpp:1:26: qapplication.h: No such file or directory
hello.cpp:2:25: qpushbutton.h: No such file or directory
hello.cpp: In function `int main(int, char**)':
hello.cpp:5: error: `QApplication' undeclared (first use this function)
hello.cpp:5: error: (Each undeclared identifier is reported only once for each
  function it appears in.)
hello.cpp:5: error: parse error before `(' token
hello.cpp:6: error: `QPushButton' undeclared (first use this function)
hello.cpp:7: error: `hello' undeclared (first use this function)
hello.cpp:9: error: `app' undeclared (first use this function)
[root@localhost hello]#
快速回复
限100 字节
 
上一个 下一个