天嵌 ARM开发社区

 找回密码
 注册
查看: 1673|回复: 1

求助工:关于QT的编译

[复制链接]
acteer 发表于 2009-8-23 15:04:04 | 显示全部楼层 |阅读模式
大家好:
    我按照QT程序开发完手册搞了一个小程序,编绎老是出错,下面是错误信息请帮忙看看,我还少了那一步。
Makefile:128: warning: overriding commands for target `moc_wave.cpp'
Makefile:125: warning: ignoring old commands for target `moc_wave.cpp'
g++  -o wave main.o wave.o wave.o moc_wave.o moc_wave.o  -L/opt/EmbedSky/Qte/x86
_qtopia/qtopia/lib -L/opt/EmbedSky/Qte/x86_qtopia/qt/lib -lqpe -lqtopia -lqte
wave.o(.text+0x0): In function `wave::wave[not-in-charge](QWidget*, char const*,
unsigned)':
: multiple definition of `wave::wave[not-in-charge](QWidget*, char const*, unsig
ned)'
wave.o(.text+0x0): first defined here
wave.o(.text+0x234): In function `wave::wave[in-charge](QWidget*, char const*, u
nsigned)':
: multiple definition of `wave::wave[in-charge](QWidget*, char const*, unsigned)
'
wave.o(.text+0x234): first defined here
wave.o(.text+0x468): In function `wave::~wave [not-in-charge]()':
: multiple definition of `wave::~wave [not-in-charge]()'
wave.o(.text+0x468): first defined here
wave.o(.text+0x48c): In function `wave::~wave [in-charge]()':
: multiple definition of `wave::~wave [in-charge]()'
wave.o(.text+0x48c): first defined here
wave.o(.text+0x4b0): In function `wave::~wave [in-charge deleting]()':
: multiple definition of `wave::~wave [in-charge deleting]()'
wave.o(.text+0x4b0): first defined here
wave.o(.text+0x4dc): In function `wave::new_slot()':
: multiple definition of `wave::new_slot()'
wave.o(.text+0x4dc): first defined here
moc_wave.o(.text+0x0): In function `wave::className() const':
: multiple definition of `wave::className() const'
moc_wave.o(.text+0x0): first defined here
moc_wave.o(.data+0x0): multiple definition of `wave::metaObj'
moc_wave.o(.data+0x0): first defined here
moc_wave.o(.text+0xc): In function `wave::initMetaObject()':
: multiple definition of `wave::initMetaObject()'
moc_wave.o(.text+0xc): first defined here
moc_wave.o(.text+0xcc): In function `wave::staticMetaObject()':
: multiple definition of `wave::staticMetaObject()'
moc_wave.o(.text+0xcc): first defined here
moc_wave.o(.text+0x74): In function `wave::tr(char const*)':
: multiple definition of `wave::tr(char const*)'
moc_wave.o(.text+0x74): first defined here
moc_wave.o(.text+0xa0): In function `wave::tr(char const*, char const*)':
: multiple definition of `wave::tr(char const*, char const*)'
moc_wave.o(.text+0xa0): first defined here
collect2: ld returned 1 exit status
make: *** [wave] Error 1
请高手指教一下。谢谢
亚瑟王 发表于 2009-8-26 12:26:45 | 显示全部楼层
你用tmake生成的Makefile文件有重复定义,修改Makefile文件,去除重复定义即可。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-5-29 02:37 , Processed in 1.031250 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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