K
K
KPIshnik2013-11-25 14:37:58
C++ / C#
KPIshnik, 2013-11-25 14:37:58

C++ Static Libraries

There is a static library libencode.a, it has a file encode.cpp. Is it possible to get this file from this library?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ilya Evseev, 2013-11-26
@KPIshnik

Libraries *.a do not contain *.cpp, but compiled ones *.o You
can extract them with the ar utility.
For disassembly use http://onlinedisassembler.com/odaweb/ or one of http://en.wikibooks.org/wiki/X86_Disassembly/Disassemblers_and_Decompilers

R
Rio, 2013-11-25
@Rio

Extract source file from compiled binary library? No.

S
Singerofthefall, 2013-11-25
@Singerofthefall

No, .a is an already compiled object module, it is impossible to restore the source code from it. You can try to disassemble with something like Objdump.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question