|  | 
 
| 大家好: 我按照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
 请高手指教一下。谢谢
 | 
 |