问题描述
我有一个用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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!