免费注册 查看新帖 |

Chinaunix

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

cygwin编译ffmpeg报奇怪连接错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-09-13 10:56 |只看该作者 |倒序浏览
本帖最后由 源方 于 2010-09-13 10:58 编辑

我只复制了部分错误。assert(),mmap()我自己个例子是可以编译过的,这里链接错误,不知道问题出在哪?nm查看.o中的符号是U,未定义,我用gcc 3.4.4,另外我搜索C:\cygwin\usr\include下有两个assert.h,一个在include下,一个在include/mingw下(还有malloc.h等),不知道是不是这个原因。
  1. /home/xxx/ffmpeg-0.6/libavcodec/libavcodec.a(ratecontrol.o):ratecontrol.c:(.
  2. text+0x3217): undefined reference to `___assert_func'
  3. /home/xxx/ffmpeg-0.6/libswscale/libswscale.a(utils.o):utils.c:(.text+0x509c)
  4. : undefined reference to `_munmap'
  5. /home/xxx/ffmpeg-0.6/libswscale/libswscale.a(utils.o):utils.c:(.text+0x50bc)
  6. : undefined reference to `_munmap'
  7. /home/xxx/ffmpeg-0.6/libswscale/libswscale.a(utils.o):utils.c:(.text+0x6e7e)
  8. : undefined reference to `_mmap'
  9. /home/xxx/ffmpeg-0.6/libswscale/libswscale.a(utils.o):utils.c:(.text+0x6eb8)
  10. : undefined reference to `_mmap'
  11. /home/xxx/ffmpeg-0.6/libavutil/libavutil.a(log.o):log.c:(.text+0x184): undef
  12. ined reference to `___getreent'
  13. /home/xxx/ffmpeg-0.6/libavutil/libavutil.a(log.o):log.c:(.text+0x1dc): undef
  14. ined reference to `___getreent'
  15. /home/xxx/ffmpeg-0.6/libavutil/libavutil.a(log.o):log.c:(.text+0x21c): undef
  16. ined reference to `___getreent'
  17. /home/xxx/ffmpeg-0.6/libavutil/libavutil.a(log.o):log.c:(.text+0x247): undef
  18. ined reference to `___getreent'
  19. /home/xxx/ffmpeg-0.6/libavutil/libavutil.a(error.o):error.c:(.text+0x40): un
  20. defined reference to `_strerror_r'
  21. /home/xxx/ffmpeg-0.6/libavutil/libavutil.a(rational.o):rational.c:(.text+0x8
  22. 8d): undefined reference to `___fpclassifyd'
  23. /home/xxx/ffmpeg-0.6/libavutil/libavutil.a(mathematics.o):mathematics.c:(.te
  24. xt+0x57d): undefined reference to `___assert_func'
  25. /home/xxx/ffmpeg-0.6/libavutil/libavutil.a(mathematics.o):mathematics.c:(.te
  26. xt+0x5c6): undefined reference to `___assert_func'
  27. /home/xxx/ffmpeg-0.6/libavutil/libavutil.a(mathematics.o):mathematics.c:(.te
  28. xt+0x650): undefined reference to `___assert_func'
  29. collect2: ld 返回 1
  30. make: *** [ffplay_g.exe] 错误 1f
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP