[root@tom workone]# ls
build hello.desktop main.cpp Makefile uic workone.cpp workone.h workone.pro workone.ui
[root@tom workone]# ./build
WARNING: Found potential symbol conflict of workone.cpp (workone.cpp) in SOURCES
WARNING: Found potential symbol conflict of workone.h (workone.h) in HEADERS
Makefile:177: warning: overriding commands for target `.obj/release-shared/workone.o'
Makefile:162: warning: ignoring old commands for target `.obj/release-shared/workone.o'
Makefile:183: warning: overriding commands for target `.obj/release-shared/moc_workone.o'
Makefile:180: warning: ignoring old commands for target `.obj/release-shared/moc_workone.o'
Makefile:189: warning: overriding commands for target `.moc/release-shared/moc_workone.cpp'
Makefile:186: warning: ignoring old commands for target `.moc/release-shared/moc_workone.cpp'
rm -f .obj/release-shared/moc_workone.o .obj/release-shared/moc_workone.o
rm -f .moc/release-shared/moc_workone.cpp .moc/release-shared/moc_workone.cpp
rm -f .ui/release-shared/workone.cpp .ui/release-shared/workone.h
rm -f .obj/release-shared/workone.o .obj/release-shared/main.o .obj/release-shared/workone.o
rm -f *~ core *.core
Makefile:177: warning: overriding commands for target `.obj/release-shared/workone.o'
Makefile:162: warning: ignoring old commands for target `.obj/release-shared/workone.o'
Makefile:183: warning: overriding commands for target `.obj/release-shared/moc_workone.o'
Makefile:180: warning: ignoring old commands for target `.obj/release-shared/moc_workone.o'
Makefile:189: warning: overriding commands for target `.moc/release-shared/moc_workone.cpp'
Makefile:186: warning: ignoring old commands for target `.moc/release-shared/moc_workone.cpp'
/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qt2/bin/uic workone.ui -o .ui/release-shared/workone.h
/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qt2/bin/uic workone.ui -i workone.h -o .ui/release-shared/workone.cpp
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -Os -DQT_NO_QWS_VFB -DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" -DQTOPIA_TARGET=\"workone\" -DQTOPIA_TRTARGET=\"workone\" -DQT_NO_DEBUG -I/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/mkspecs/qws/linux-arm-g++ -I. -Ihttp://static.tieba.baidu.com/qtopia-2.2.0-FriendlyARM/qtopia/include -Ihttp://static.tieba.baidu.com/qtopia-2.2.0-FriendlyARM/qt2/include -I.ui/release-shared/ -I.moc/release-shared/ -o .obj/release-shared/workone.o .ui/release-shared/workone.cpp
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -Os -DQT_NO_QWS_VFB -DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" -DQTOPIA_TARGET=\"workone\" -DQTOPIA_TRTARGET=\"workone\" -DQT_NO_DEBUG -I/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/mkspecs/qws/linux-arm-g++ -I. -Ihttp://static.tieba.baidu.com/qtopia-2.2.0-FriendlyARM/qtopia/include -Ihttp://static.tieba.baidu.com/qtopia-2.2.0-FriendlyARM/qt2/include -I.ui/release-shared/ -I.moc/release-shared/ -o .obj/release-shared/main.o main.cpp
/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qt2/bin/moc .ui/release-shared/workone.h -o .moc/release-shared/moc_workone.cpp
arm-linux-g++ -c -pipe -DQWS -fno-exceptions -fno-rtti -Wall -W -Os -DQT_NO_QWS_VFB -DQTOPIA_DATA_LINKING -DQCONFIG=\"qconfig-qpe.h\" -DQTOPIA_TARGET=\"workone\" -DQTOPIA_TRTARGET=\"workone\" -DQT_NO_DEBUG -I/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/mkspecs/qws/linux-arm-g++ -I. -Ihttp://static.tieba.baidu.com/qtopia-2.2.0-FriendlyARM/qtopia/include -Ihttp://static.tieba.baidu.com/qtopia-2.2.0-FriendlyARM/qt2/include -I.ui/release-shared/ -I.moc/release-shared/ -o .obj/release-shared/moc_workone.o .moc/release-shared/moc_workone.cpp
test -d /opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/bin/ || mkdir -p /opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/bin/
arm-linux-g++ -o /opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/bin/workone .obj/release-shared/workone.o .obj/release-shared/main.o .obj/release-shared/workone.o .obj/release-shared/moc_workone.o .obj/release-shared/moc_workone.o -luuid -lqtopia2 -lqtopia -lqpe -L/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/lib -L/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qt2/lib -lqte
.obj/release-shared/workone.o: In function `non-virtual thunk to TMainFormBase::~TMainFormBase()':
workone.cpp:(.text+0x0): multiple definition of `non-virtual thunk to TMainFormBase::~TMainFormBase()'
.obj/release-shared/workone.o:workone.cpp:(.text+0x0): first defined here
.obj/release-shared/workone.o: In function `TMainFormBase::~TMainFormBase()':
workone.cpp:(.text+0x8): multiple definition of `TMainFormBase::~TMainFormBase()'
.obj/release-shared/workone.o:workone.cpp:(.text+0x8): first defined here
.obj/release-shared/workone.o: In function `TMainFormBase::~TMainFormBase()':
workone.cpp:(.text+0x34): multiple definition of `TMainFormBase::~TMainFormBase()'
.obj/release-shared/workone.o:workone.cpp:(.text+0x34): first defined here
.obj/release-shared/workone.o: In function `non-virtual thunk to TMainFormBase::~TMainFormBase()':
workone.cpp:(.text+0x60): multiple definition of `non-virtual thunk to TMainFormBase::~TMainFormBase()'
.obj/release-shared/workone.o:workone.cpp:(.text+0x60): first defined here
.obj/release-shared/workone.o: In function `TMainFormBase::~TMainFormBase()':
workone.cpp:(.text+0x68): multiple definition of `TMainFormBase::~TMainFormBase()'
.obj/release-shared/workone.o:workone.cpp:(.text+0x68): first defined here
.obj/release-shared/workone.o: In function `TMainFormBase::TMainFormBase(QWidget*, char const*, unsigned int)':
workone.cpp:(.text+0x9c): multiple definition of `TMainFormBase::TMainFormBase(QWidget*, char const*, unsigned int)'
.obj/release-shared/workone.o:workone.cpp:(.text+0x9c): first defined here
.obj/release-shared/workone.o: In function `TMainFormBase::TMainFormBase(QWidget*, char const*, unsigned int)':
workone.cpp:(.text+0x118): multiple definition of `TMainFormBase::TMainFormBase(QWidget*, char const*, unsigned int)'
.obj/release-shared/workone.o:workone.cpp:(.text+0x118): first defined here
.obj/release-shared/moc_workone.o: In function `TMainFormBase::className() const':
moc_workone.cpp:(.text+0x0): multiple definition of `TMainFormBase::className() const'
.obj/release-shared/moc_workone.o:moc_workone.cpp:(.text+0x0): first defined here
.obj/release-shared/moc_workone.o: In function `TMainFormBase::staticMetaObject()':
moc_workone.cpp:(.text+0x34): multiple definition of `TMainFormBase::staticMetaObject()'
.obj/release-shared/moc_workone.o:moc_workone.cpp:(.text+0x34): first defined here
.obj/release-shared/moc_workone.o: In function `TMainFormBase::tr(char const*, char const*)':
moc_workone.cpp:(.text+0xa0): multiple definition of `TMainFormBase::tr(char const*, char const*)'
.obj/release-shared/moc_workone.o:moc_workone.cpp:(.text+0xa0): first defined here
.obj/release-shared/moc_workone.o: In function `TMainFormBase::tr(char const*)':
moc_workone.cpp:(.text+0xd4): multiple definition of `TMainFormBase::tr(char const*)'
.obj/release-shared/moc_workone.o:moc_workone.cpp:(.text+0xd4): first defined here
.obj/release-shared/moc_workone.o: In function `TMainFormBase::initMetaObject()':
moc_workone.cpp:(.text+0x10c): multiple definition of `TMainFormBase::initMetaObject()'
.obj/release-shared/moc_workone.o:moc_workone.cpp:(.text+0x10c): first defined here
.obj/release-shared/moc_workone.o:(.bss+0x4): multiple definition of `TMainFormBase::metaObj'
.obj/release-shared/moc_workone.o:(.bss+0x4): first defined here
.obj/release-shared/moc_workone.o:(.rodata+0x0): multiple definition of `vtable for TMainFormBase'
.obj/release-shared/moc_workone.o:(.rodata+0x0): first defined here
collect2: ld returned 1 exit status
make: *** [/opt/FriendlyARM/mini2440/arm-qtopia/qtopia-2.2.0-FriendlyARM/qtopia/bin/workone] Error 1