MinGW正在创建dll.a文件吗?这些是什么类型的库文件? [英] MinGW creating dll.a files ? What type of library files are those?

查看:314
本文介绍了MinGW正在创建dll.a文件吗?这些是什么类型的库文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Windows和Linux库的编译非常熟悉,但是直到今天,当我看到Windows计算机上的MinGW在OpenCV编译后丢弃了dll.a.a文件时,我开始认真考虑.

I am fairly familiar with Windows and Linux libraries compilation but as for today when I have seen MinGW on my Windows machine threw out dll.a and .a files after OpenCV compilation I have started to seriously start thinking.

这些是我的OpenCV编译的\lib输出:

These are my \lib output from OpenCV compilation :

2012-12-21  23:35         1 338 420 libopencv_core243.dll.a
2012-12-21  23:33           224 994 libopencv_core_pch_dephelp.a
2012-12-21  23:38           830 820 libopencv_features2d243.dll.a

和我的\bin输出:

2012-12-21  23:40           356 178 libopencv_perf_core.dll.a
2012-12-21  23:45           362 702 libopencv_perf_features2d.dll.a
2012-12-21  23:35         4 086 052 libopencv_core243.dll
2012-12-21  23:38         2 102 896 libopencv_features2d243.dll

(我显然有更多的二进制文件,但是在这里列出它没有意义)

(I obviously have more binaries but there is no sense in listing it here)

有人可以告诉我这些是否是我可以链接的普通静态库吗?以及我该如何反对他们?

Can someone tell me if these are normal static libraries that I can link against ? and how should I link against them ?

推荐答案

.a文件是静态库. .dll.a文件是仅帮助您链接到dll(这是一个动态库)的文件.我的猜测是您的dll包含了所有内容,并且dll.a文件仅指向该dll.

.a files are static libraries. .dll.a files are files that just help you link against a dll (which is a dynamic library). My guess is that your dll contains everything, and the dll.a files just point to the dll.

这篇关于MinGW正在创建dll.a文件吗?这些是什么类型的库文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆