LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   dynamically list all symbols from a shared library (http://www.linuxquestions.org/questions/programming-9/dynamically-list-all-symbols-from-a-shared-library-753920/)

famsinyi 09-09-2009 12:30 PM

dynamically list all symbols from a shared library
 
My application needs the list of all functions exported by a shared library at run time. How can this be done in Linux programming using c++?

theNbomr 09-09-2009 05:33 PM

You haven't said anything about your programming language, but most languages provide a method of spawning a child process, and capturing it's stdout & stderr streams. You could use this method to spawn ldd, and capture and parse it's output.
--- rod.

theNbomr 09-09-2009 07:21 PM

This thread on another board seems to have the same conclusion, with more detail.
--- rod.


All times are GMT -5. The time now is 01:03 PM.