请问为什么我在QT-2.3.2中的designer里做的一个东西,用tmake编译时总会出现如下错误,是不是需要自己添加什么呢?还是我的编译器没装好呢?
[root@localhost a]# make
Makefile:120: warning: overriding commands for target `moc_a.cpp'
Makefile:117: warning: ignoring old commands for target `moc_a.cpp'
arm-linux-g++ -o a a.o main.o a.o moc_a.o moc_a.o -L/usr/local/arm/3.3.2/lib -
L/usr/lvjinwen/qt/qt-2.3.7/lib -lm -lqte
a.o(.text+0x0): In function `a::a[not-in-charge](QWidget*, char const*, unsigned
)':
: multiple definition of `a::a[not-in-charge](QWidget*, char const*, unsigned)'
a.o(.text+0x0): first defined here
a.o(.text+0x528): In function `a::a[in-charge](QWidget*, char const*, unsigned)'
:
: multiple definition of `a::a[in-charge](QWidget*, char const*, unsigned)'
a.o(.text+0x528): first defined here
a.o(.text+0xa50): In function `a::~a [not-in-charge]()':
: multiple definition of `a::~a [not-in-charge]()'
a.o(.text+0xa50): first defined here
a.o(.text+0xa70): In function `a::~a [in-charge]()':
: multiple definition of `a::~a [in-charge]()'
a.o(.text+0xa70): first defined here
a.o(.text+0xa90): In function `a::~a [in-charge deleting]()':
: multiple definition of `a::~a [in-charge deleting]()'
a.o(.text+0xa90): first defined here
moc_a.o(.text+0x0): In function `a::className() const':
: multiple definition of `a::className() const'
moc_a.o(.text+0x0): first defined here
moc_a.o(.bss+0x0): multiple definition of `a::metaObj'
moc_a.o(.bss+0x0): first defined here
moc_a.o(.text+0xc): In function `a::initMetaObject()':
: multiple definition of `a::initMetaObject()'
moc_a.o(.text+0xc): first defined here
moc_a.o(.text+0xf0): In function `a::staticMetaObject()':
: multiple definition of `a::staticMetaObject()'
moc_a.o(.text+0xf0): first defined here
moc_a.o(.text+0x70): In function `a::tr(char const*)':
: multiple definition of `a::tr(char const*)'
moc_a.o(.text+0x70): first defined here
moc_a.o(.text+0xb0): In function `a::tr(char const*, char const*)':
: multiple definition of `a::tr(char const*, char const*)'
moc_a.o(.text+0xb0): first defined here
collect2: ld returned 1 exit status
make: *** [a] Error 1
[root@localhost a]#