本文介绍了如何将VSTS .lib转换为MinGW .a?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我有一个用Visual Studio编译的静态库,我想从MinGW链接到它.

I have a static library compiled with Visual Studio and I want to link to it from MinGW.

我尝试更改后缀,但收到一堆警告,例如:Warning: .drectve /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized.

I tried changing the suffix but I get a bunch of warnings like: Warning: .drectve /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized.

还有一些错误,包括:./libetpan.a(Release_ssl/mailimap.obj):(.text[_mailimap_noop]+0x7): undefined reference to ___ security_cookie'`.

Also a few errors including: ./libetpan.a(Release_ssl/mailimap.obj):(.text[_mailimap_noop]+0x7): undefined reference to___security_cookie'`.

非常感谢您的帮助.

推荐答案

您可以尝试将.lib转换为.a,

You can try to convert the .lib to .a with

http://code.google.com/p/lib2a/

这篇关于如何将VSTS .lib转换为MinGW .a?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 16:57