天嵌 ARM开发社区

 找回密码
 注册
查看: 1659|回复: 3

关于makeQt程序出出错的问题

[复制链接]
clh1934 发表于 2010-10-26 13:02:02 | 显示全部楼层 |阅读模式
刚拿到开发板,按照教程上提示的编译 第一个程序,make时,一直提示
[root@fedora10 hello]# make
Makefile:119: warning: overriding commands for target `moc_hello.cpp'
Makefile:116: warning: ignoring old commands for target `moc_hello.cpp'
g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/include -o hello.o hello.cpp
In file included from hello.cpp:9:
hello.h:36: error: return type specification for constructor invalid
hello.h:36: error: constructors cannot be declared virtual
hello.cpp:71: error: return type specification for constructor invalid
make: *** [hello.o] Error 1
这样的错误,请各位帮我分析一下 什么原因。
天嵌_support1 发表于 2010-10-26 14:58:23 | 显示全部楼层
1# clh1934


看看你的结构声明,类声明之类的,有没有分号结束。
 楼主| clh1934 发表于 2010-10-27 09:20:12 | 显示全部楼层
2# embedsky_lxt


还有其他可能吗?我查看了一下,发现没有什么问题。再编译还是出现这个问题?
天嵌_support1 发表于 2010-10-27 11:56:45 | 显示全部楼层
3# clh1934


把你的代码贴出来。
和Qtopia2.0分手 的日子很久。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-10-5 20:24 , Processed in 1.035196 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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