Archived

This topic is now archived and is closed to further replies.

Converting .lib into lib#.a

This topic is 5233 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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 ]

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites