免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1634 | 回复: 1
打印 上一主题 下一主题

lzma457的测试文件编译出错…… [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-06 16:27 |只看该作者 |倒序浏览
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

论坛徽章:
0
2 [报告]
发表于 2009-04-06 18:03 |只看该作者
问题解决啦 换成LZMA SDK 4.65 比较好使 ^_^
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP