将* .lib文件与MinGW链接 [英] Linking *.lib files with MinGW
问题描述
是否可以将* .lib文件与MinGW(我在Eclipse中使用)相关的明确信息.我正在使用libcurl + OpenSSL,所以现在我不明白是否
Is it possible to Link *.lib files with MinGW(I use it with Eclipse) unambiguous information about that. I'm fighting with libcurl+OpenSSL so now I don't understand if my errors are because I try to use .lib-files in MinGW or something else is wrong
推荐答案
可能不是. mingw的静态库格式为* .a.
Probably not. mingw's static library format is *.a.
给定平台的动态库由必须能够加载它们的OS加载器标准化.
Dynamic libraries for a given platform are standardized by the OS loader that must be able to load them.
静态库仅必须由工具链的链接器理解,因此与交叉编译器的兼容性较低. Afaik * .lib文件甚至在所有MSVC版本之间都不兼容.
Static libraries only have to be understood by the toolchain's linker, and are thus less cross compiler compatible. Afaik *.lib files are not even compatible across all MSVC versions.
稍后添加是由于评论不完整: 较新版本的mingw也支持.lib文件,但您在'11时才问过您的问题,然后您可能再也没有了.
Added later due to pestering comments: Newer versions of mingw also support .lib files, but you asked your question back in '11, and then you probably wouldn't have them then.
这篇关于将* .lib文件与MinGW链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!