天嵌 ARM开发社区

 找回密码
 注册
查看: 7882|回复: 8

qt make时出现的错误,怎么办,,新手求教

[复制链接]
freedomhai 发表于 2012-3-29 16:58:27 | 显示全部楼层 |阅读模式
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/include -I/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/include -o main.o main.cpp
main.cpp:5: error: expected constructor, destructor, or type conversion before ‘(’ token
main.cpp: In function ‘int main(int, char**)’:
main.cpp:6: error: ‘qpeAppMap’ was not declared in this scope
make: *** [main.o] Error 1


 楼主| freedomhai 发表于 2012-3-29 17:00:24 | 显示全部楼层
#include "hello.h"
#include "qapplication.h"
#include <qtopia/qpeapplication.h>

QTOPIA_APPLICATION ("hello",hello)
QTOPIA_MAIN


这是main程序,,完全用教程上讲的。。。
回复

使用道具 举报

春天繁花 发表于 2012-5-13 21:03:16 | 显示全部楼层
freedomhai 发表于 2012-3-29 17:00
#include "hello.h"
#include "qapplication.h"
#include

我也遇到这样的问题,请问你现在解决了没,求指教。多谢!
回复

使用道具 举报

春天繁花 发表于 2012-5-13 21:04:51 | 显示全部楼层
本帖最后由 春天繁花 于 2012-5-13 21:05 编辑

希望楼主不吝赐教,可以的话,加为Q友,一同学习linux
QQ:1315890561

回复

使用道具 举报

tianqian2012 发表于 2012-12-19 14:40:08 | 显示全部楼层
我现在就在纠结这个问题
回复

使用道具 举报

tianqian2012 发表于 2012-12-19 14:42:15 | 显示全部楼层
请问楼主解决了没?
回复

使用道具 举报

tianqian2012 发表于 2012-12-19 14:44:36 | 显示全部楼层
请问楼主解决了没?
回复

使用道具 举报

依然。 发表于 2013-3-17 19:58:36 | 显示全部楼层
同样的问题,求解决,求解决
回复

使用道具 举报

lbn321 发表于 2014-2-23 22:49:08 | 显示全部楼层
求指导,同样的问题啊!!!!!
回复

使用道具 举报

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

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2025-6-20 06:25 , Processed in 2.039795 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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