How can I convert VSTS.lib to MinGW.a?

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

I tried to change the suffix, but get a bunch of warnings such as: Warning: .drectve /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized.

There are also a few errors, including: ./libetpan.a(Release_ssl/mailimap.obj):(.text[_mailimap_noop]+0x7): undefined reference to___ security_cookie``.

Any help is greatly appreciated.

+5
source share
2 answers

You can try converting .lib to .a with

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

+5
source

.lib and .a do not match. Changing the file extension lies with the linker, so it does not work.

32- , , " ". MinGW 32- .lib . , .

64- , MinGW-w64 - (, 64- TDM-GCC), . FAQ MinGW-w64:

gendef mylib.dll
dlltool --as-flags=--64 -m i386:x86-64 -k --output-lib libmylib.a --input-def mylib.def
+3

All Articles