A LIB file is little more than a series of OBJ files concatenated together.
In general, it's not possible to re-generate C++ from an OBJ or LIB file -
there's just too much semantic distance between machine language (as present
in the OBJ or LIB) and C++ for an automatic translation to be very
successful.
With a great deal of care, if you know that a particular piece of machine
language was produced by a particular C++ compiler (for example, MSVC6),
it's possible to manually re-construct a C++ source file which, when
compiled, will yield the original machine language, but doing so is
incredibly tedious, and will result in a C++ source file with probably very
similarity to the original, especially if the original source code made any
use of templates or inline functions.
If you'd like to view the machine language in an OBJ file, you can do so by
using dumpbin /disasm the_name_of_you_obj_or_lib - be warned, the output is
LONG.
-cd
Quote:
> I know that there are lib (library) files used in C/C++ language. I have
> never had a necessety to see a lib file content. I know that the libs are
> used for contining object files those consist interpreted sources from
some
> cpp source files. Is there possible translating lib and obj files to cpp
> files.