|
我的也出现了问题,我把自己生成的makefile按照他所给的例子修改了,可还是不行,下边是出现的错误。请大家给看看是哪里出错了?
[root@EmbedSky test]# make
g++ -o /opt/EmbedSky/Qte/x86_qtopia/qtopia/bin/test test.o main.o test.o moc_te
st.o -L/opt/EmbedSky/Qte/x86_qtopia/qtopia/lib -L/opt/EmbedSky/Qte/x86_qtopia/
qt/lib -lqpe -lqtopia -lqte
test.o(.text+0x0): In function `test::test[not-in-charge](QWidget*, char const*,
unsigned)':
: multiple definition of `test::test[not-in-charge](QWidget*, char const*, unsig
ned)'
test.o(.text+0x0): first defined here
test.o(.text+0x3b4): In function `test::test[in-charge](QWidget*, char const*, u
nsigned)':
: multiple definition of `test::test[in-charge](QWidget*, char const*, unsigned)
'
test.o(.text+0x3b4): first defined here
test.o(.text+0x768): In function `test::~test [not-in-charge]()':
: multiple definition of `test::~test [not-in-charge]()'
test.o(.text+0x768): first defined here
test.o(.text+0x78c): In function `test::~test [in-charge]()':
: multiple definition of `test::~test [in-charge]()'
test.o(.text+0x78c): first defined here
test.o(.text+0x7b0): In function `test::~test [in-charge deleting]()':
: multiple definition of `test::~test [in-charge deleting]()'
test.o(.text+0x7b0): first defined here
test.o(.text+0x7dc): In function `test::event(QEvent*)':
: multiple definition of `test::event(QEvent*)'
test.o(.text+0x7dc): first defined here
test.o(.text+0x8a8): In function `test::user_button()':
: multiple definition of `test::user_button()'
test.o(.text+0x8a8): first defined here
collect2: ld returned 1 exit status
make: *** [/opt/EmbedSky/Qte/x86_qtopia/qtopia/bin/test] Error 1 |
|