Converting .lib into lib#.a

Started by
2 comments, last by Ichigo 20 years, 8 months ago
Is there any practical way to convert VC++ #.lib static library files into GCC lib#.a static library files?
Have a nice day ^^
Advertisement
no, recompile.
A couple of starting point : the object file format MS uses is called COFF (common object file format), while GCC uses ELF (executable and linkable format). And the problem is more in the domain of the linker than in the domain of the compiler.

Knowing that, you can start searching...

[ Start Here ! | How To Ask Smart Questions | Recommended C++ Books | C++ FAQ Lite | Function Ptrs | CppTips Archive ]
[ Header Files | File Format Docs | LNK2001 | C++ STL Doc | STLPort | Free C++ IDE | Boost C++ Lib | MSVC6 Lib Fixes ]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
Goggle for reimp. This only works for import libraries (like DirectX), and not static libraries. Import libraries are used to load DLLs when the program starts. If the library has a DLL attatched, it's probably an import library.

Static libraries are linked directly with the program - if this is what you have, you need to recompile from source.

Reimp does require some tinkering, and I'm not familiar with it, so Google is probably your best bet.

EDIT: This assumes you are using MinGW/Cygwin (GCC Windows ports), not GCC for Linux. Also, import and static libraries have the same extension (.a) under GCC.


"The sun is the same in a relative way,
but you're older"
--Pink Floyd

[edited by - ze_jackal on August 15, 2003 12:50:29 AM]

This topic is closed to new replies.

Advertisement