• 5162阅读
  • 3回复

TQ2440开发板first例程出错问题份 附件是Linux下first的程序 [复制链接]

上一主题 下一主题
离线0013180
 
只看楼主 倒序阅读 楼主  发表于: 2009-11-03
[root@localhost first]# make
Makefile:121: warning: overriding commands for target `moc_first.cpp'
Makefile:118: warning: ignoring old commands for target `moc_first.cpp'
g++  -o first first.o main.o first.o moc_first.o moc_first.o  -L/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/lib -L/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qt2/lib -lqpe -lqtopia -lqte
first.o(.text+0x0): In function `first::first[not-in-charge](QWidget*, char const*, unsigned)':
: multiple definition of `first::first[not-in-charge](QWidget*, char const*, unsigned)'
first.o(.text+0x0): first defined here
first.o(.text+0x3c0): In function `first::first[in-charge](QWidget*, char const*, unsigned)':
: multiple definition of `first::first[in-charge](QWidget*, char const*, unsigned)'
first.o(.text+0x3c0): first defined here
first.o(.text+0x780): In function `first::~first [not-in-charge]()':
: multiple definition of `first::~first [not-in-charge]()'
first.o(.text+0x780): first defined here
first.o(.text+0x7a4): In function `first::~first [in-charge]()':
: multiple definition of `first::~first [in-charge]()'
first.o(.text+0x7a4): first defined here
first.o(.text+0x7c8): In function `first::~first [in-charge deleting]()':
: multiple definition of `first::~first [in-charge deleting]()'
first.o(.text+0x7c8): first defined here
first.o(.text+0x7f4): In function `first::event(QEvent*)':
: multiple definition of `first::event(QEvent*)'
first.o(.text+0x7f4): first defined here
first.o(.text+0x870): In function `first::user_button()':
: multiple definition of `first::user_button()'
first.o(.text+0x870): first defined here
moc_first.o(.text+0x0): In function `first::className() const':
: multiple definition of `first::className() const'
moc_first.o(.text+0x0): first defined here
moc_first.o(.data+0x0): multiple definition of `first::metaObj'
moc_first.o(.data+0x0): first defined here
moc_first.o(.text+0xc): In function `first::initMetaObject()':
: multiple definition of `first::initMetaObject()'
moc_first.o(.text+0xc): first defined here
moc_first.o(.text+0xcc): In function `first::staticMetaObject()':
: multiple definition of `first::staticMetaObject()'
moc_first.o(.text+0xcc): first defined here
moc_first.o(.text+0x74): In function `first::tr(char const*)':
: multiple definition of `first::tr(char const*)'
moc_first.o(.text+0x74): first defined here
moc_first.o(.text+0xa0): In function `first::tr(char const*, char const*)':
: multiple definition of `first::tr(char const*, char const*)'
moc_first.o(.text+0xa0): first defined here
moc_first.o(.gnu.linkonce.d._ZTV5first+0x19c): undefined reference to `non-virtual thunk [nv:-36] to first::~first [in-charge]()'
moc_first.o(.gnu.linkonce.d._ZTV5first+0x1a0): undefined reference to `non-virtual thunk [nv:-36] to first::~first [in-charge deleting]()'
collect2: ld returned 1 exit status
make: *** [first] Error 1
附件: first.rar (64 K) 下载次数:2
离线rqzrqh

只看该作者 1楼 发表于: 2009-11-03
用Qt Creator打开ui文件失败
离线0013180
只看该作者 2楼 发表于: 2009-11-03
用designer 打开
离线dusy1986

只看该作者 3楼 发表于: 2009-11-10
你把beep.pro文件里的beep.ui去掉再试一次。。估计是Makefile有重复的信息。。
快速回复
限100 字节
 
上一个 下一个