Is there anyway to get source code for .so file? [closed] - c++

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
Is there any way to extract the code source Ubuntu 16
from a .so file?
I used this command:
readelf -Ws /root/file.so
But I am looking for a way to understand how each function works.
Is there a solution?

There isn't. Once you compile your code there is no trace of it left in the binary, only machine code.
People may reccommend you decompilers but those just aren't perfectly reliable and when they execute they will produce the source code that SHOULD have the same effect as the original code.

Related

Output code after templates application [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
We all know g++ and MSVC can output both preprocessed C++ code (-E) and optimized assembler code (-S). Yet there are no options to output after templates application. Yet I'd like to have it to use with old compilers (the ones that does not support templates).
So, are there any compiler or translator which can produce code after templates application? C++17 are welcome but not necessary.

Reference to analyze the call dependencies in C/C++ [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I want to analyze the c/c++ files for getting the dependencies through source codes. The data tells us which method in a file call to the other function in other file.
How can I accomplish? If you have good reference, Please share to me.
Thanks.
You can use different tool like doxygen , KCachegrind, gprof, Netbeans call graph for analyzing the dependencies.
https://en.wikipedia.org/wiki/Call_graph
I don't know if it meets your specific needs, but to create a callgraph, use the callgrind tool in valgrind:
valgrind --tool=callgrind
See here.
I think you can use ctags with cscope.

looking for fat32 source [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am looking for open source code for implementing fat32 in C or C++.I thought It would be easy to find several online but it appears to be evading me. I don't have a problem with GPL or any other open source license.
Look at fs/fat directory in the Linux kernel sources for a Linux implementation.

c++ line-based unified diff library [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Does anyone know of a good c++ library that can provide a line-based unified diff?
I would expect that the svn sources contain a good differ
How about the google-diff-match-patch library? Alternatively, you could just invoke the diff utility from your code, using popen, and then you could read the differencing output produced by the diff utility from the pipe.

RELAX NG C++ Code Generator? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Are there any open source RELAX NG C++ code generator?
Thanks.
I know of none for RELAX NG. However, if you can bring yourself to generate or convert your schema files as XML Schema, then it would be worthwhile to take a look at the C++ code generators from CodeSynthesis. They are GPLv2 open source, with proprietary licenses also available.
http://www.codesynthesis.com/products/