ChinaFFmpeg

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 7815|回复: 3

[源码] 项目里面的那些*.v文件是做什么用的?

[复制链接]
发表于 2013-10-27 11:37:52 | 显示全部楼层 |阅读模式
每个库里面都有一个.v文件,如libavutil.v和libavformat.v,这些是在Makefile里面包含的吗?

回复

使用道具 举报

发表于 2013-10-27 18:47:34 | 显示全部楼层
看起来像是用来实现类似windows下的动态库符号导出文件.def的功能
gcc doesn't have dllexport stuff by default. as in unix systems, gcc exports all non-static symbols. FFmpeg has some trickery (the .v files IIRC) that prevents some symbols from being exported.

ff_* prefixed functions are internal to the libraries (normally when one library depends on the other) and are not external API, so they should be used.

这里有一个关于.v文件的讨论
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-10-28 10:05:19 | 显示全部楼层
十二月花 发表于 2013-10-27 18:47
看起来像是用来实现类似windows下的动态库符号导出文件.def的功能

这里有一个关于.v文件的讨论

动态库符号导出文件.def的功能又是啥?
回复 支持 反对

使用道具 举报

发表于 2013-10-28 13:16:20 | 显示全部楼层
pqiankui 发表于 2013-10-28 10:05
动态库符号导出文件.def的功能又是啥?

windows下程序中使用dll里面的函数和变量时,需要在编译dll的时候可以用生成def文件的方式指定允许外部程序调用的内容。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|Archiver|ChinaFFmpeg

GMT+8, 2024-4-20 20:16 , Processed in 0.045629 second(s), 14 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表