- 论坛徽章:
- 0
|
lzma457的测试文件编译出错……
\C\Compress\Lzma\LzmaTest.c这个测试文件编译后错误如下,希望会的兄弟姐妹们能帮帮忙指点一下。
[nisuser1@master Lzma]$ g++ LzmaDecode.c LzmaDecodeSize.c LzmaTest.c LzmaStateDecode.c LzmaStateTest.c
/tmp/ccRosZXd.o: In function `LzmaDecodeProperties(_CLzmaProperties*, unsigned char const*, int)':
LzmaDecodeSize.c:(.text+0x500): multiple definition of `LzmaDecodeProperties(_CLzmaProperties*, unsigned char const*, int)'
/tmp/cca8ZS08.o:LzmaDecode.c:(.text+0x0): first defined here
/tmp/ccRosZXd.o: In function `LzmaDecode(_CLzmaDecoderState*, unsigned char const*, unsigned int, unsigned int*, unsigned char*, unsigned int, unsigned int*)':
LzmaDecodeSize.c:(.text+0x58c): multiple definition of `LzmaDecode(_CLzmaDecoderState*, unsigned char const*, unsigned int, unsigned int*, unsigned char*, unsigned int, unsigned int*)'
/tmp/cca8ZS08.o:LzmaDecode.c:(.text+0x8c): first defined here
/usr/bin/ld: Warning: size of symbol `LzmaDecode(_CLzmaDecoderState*, unsigned char const*, unsigned int, unsigned int*, unsigned char*, unsigned int, unsigned int*)' changed from 4386 in /tmp/cca8ZS08.o to 1464 in /tmp/ccRosZXd.o
/tmp/ccLYZxTY.o: In function `LzmaDecodeProperties(_CLzmaProperties*, unsigned char const*, int)':
LzmaStateDecode.c:(.text+0x0): multiple definition of `LzmaDecodeProperties(_CLzmaProperties*, unsigned char const*, int)'
/tmp/cca8ZS08.o:LzmaDecode.c:(.text+0x0): first defined here
/usr/bin/ld: Warning: size of symbol `LzmaDecodeProperties(_CLzmaProperties*, unsigned char const*, int)' changed from 140 in /tmp/cca8ZS08.o to 247 in /tmp/ccLYZxTY.o
/tmp/ccSy9OZE.o: In function `PrintError(char*, char const*)':
LzmaStateTest.c:(.text+0x0): multiple definition of `PrintError(char*, char const*)'
/tmp/ccEskVCu.o:LzmaTest.c:(.text+0x0): first defined here
/tmp/ccSy9OZE.o: In function `MyReadFile(_IO_FILE*, void*, unsigned int)':
LzmaStateTest.c:(.text+0x74): multiple definition of `MyReadFile(_IO_FILE*, void*, unsigned int)'
/tmp/ccEskVCu.o:LzmaTest.c:(.text+0xdc): first defined here
/usr/bin/ld: Warning: size of symbol `MyReadFile(_IO_FILE*, void*, unsigned int)' changed from 62 in /tmp/ccEskVCu.o to 41 in /tmp/ccSy9OZE.o
/tmp/ccSy9OZE.o: In function `MyReadFileAndCheck(_IO_FILE*, void*, unsigned int)':
LzmaStateTest.c:(.text+0x9e): multiple definition of `MyReadFileAndCheck(_IO_FILE*, void*, unsigned int)'
/tmp/ccEskVCu.o:LzmaTest.c:(.text+0x11a): first defined here
/tmp/ccSy9OZE.o: In function `main3(_IO_FILE*, _IO_FILE*, char*)':
LzmaStateTest.c:(.text+0xc8): multiple definition of `main3(_IO_FILE*, _IO_FILE*, char*)'
/tmp/ccEskVCu.o:LzmaTest.c:(.text+0x144): first defined here
/usr/bin/ld: Warning: size of symbol `main3(_IO_FILE*, _IO_FILE*, char*)' changed from 950 in /tmp/ccEskVCu.o to 1023 in /tmp/ccSy9OZE.o
/tmp/ccSy9OZE.o:(.data+0x0): multiple definition of `kCantReadMessage'
/tmp/ccEskVCu.o:(.data+0x0): first defined here
/tmp/ccSy9OZE.o:(.data+0x8): multiple definition of `kCantAllocateMessage'
/tmp/ccEskVCu.o:(.data+0x8): first defined here
/tmp/ccSy9OZE.o:(.data+0x4): multiple definition of `kCantWriteMessage'
/tmp/ccEskVCu.o:(.data+0x4): first defined here
/tmp/ccSy9OZE.o: In function `main2(int, char const**, char*)':
LzmaStateTest.c:(.text+0x4c8): multiple definition of `main2(int, char const**, char*)'
/tmp/ccEskVCu.o:LzmaTest.c:(.text+0x4fa): first defined here
/tmp/ccSy9OZE.o: In function `main':
LzmaStateTest.c:(.text+0x654): multiple definition of `main'
/tmp/ccEskVCu.o:LzmaTest.c:(.text+0x686): first defined here
collect2: ld returned 1 exit status
|
|
|