|
本帖最后由 jmis_em 于 2013-8-5 20:09 编辑
在Makefeli里我把生产hello那个屏蔽了就可以make通过怎么回事啊?我在做qt,第一个first。只不过名字叫hello- hello.o:hello.cpp:(.text+0x110): first defined here
- hello.o: In function `hello::hello(QWidget*, char const*, unsigned int)':
- hello.cpp:(.text+0x460): multiple definition of `hello::hello(QWidget*, char const*, unsigned int)'
- hello.o:hello.cpp:(.text+0x460): first defined here
- moc_hello.o: In function `hello::className() const':
- moc_hello.cpp:(.text+0x0): multiple definition of `hello::className() const'
- moc_hello.o:moc_hello.cpp:(.text+0x0): first defined here
- moc_hello.o: In function `hello::staticMetaObject()':
- moc_hello.cpp:(.text+0x40): multiple definition of `hello::staticMetaObject()'
- moc_hello.o:moc_hello.cpp:(.text+0x40): first defined here
- moc_hello.o:(.bss+0x0): multiple definition of `hello::metaObj'
- moc_hello.o:(.bss+0x0): first defined here
- moc_hello.o: In function `hello::tr(char const*, char const*)':
- moc_hello.cpp:(.text+0x100): multiple definition of `hello::tr(char const*, char const*)'
- moc_hello.o:moc_hello.cpp:(.text+0x100): first defined here
- moc_hello.o: In function `hello::tr(char const*)':
- moc_hello.cpp:(.text+0x140): multiple definition of `hello::tr(char const*)'
- moc_hello.o:moc_hello.cpp:(.text+0x140): first defined here
- moc_hello.o: In function `hello::initMetaObject()':
- moc_hello.cpp:(.text+0x180): multiple definition of `hello::initMetaObject()'
- moc_hello.o:moc_hello.cpp:(.text+0x180): first defined here
- collect2: ld returned 1 exit status
- make: *** [/opt/EmbedSky/Qte/x86-qtopia-2.2.0/qtopia/image/opt/Qtopia/bin/hello] Error 1
复制代码 |
|