01-15-2014 04:12 AM
We need to find the libraries assoctiated with a particular binary at run time. what is the command / procedure to find the same?
Solved! Go to Solution.
01-15-2014 04:24 AM
01-15-2014 04:28 AM
01-15-2014 04:34 AM
01-15-2014 05:42 AM
The reason I ask is that libraries are either there or they're not.
If they are not there you will get an exception when you call a function or instantiate a class from that library (this is one way of checking if it's present by catching the exception).
01-15-2014 07:28 AM - edited 01-15-2014 07:32 AM
I've never come across anything like this but that doesn't mean it doesn't exist although I think a simple way to do this in C++ would not be available as all linking is assumed to be handled correctly by the linker in the linker stage of the build.
If you are linking your library within your project then the only way that anything can go wrong is if you deliberately take the library out of the bar file or the bar file becomes corrupted.
As I said you can look for an exception if you feel this may happen but it is a very low possibility.
I keep asking the question of what you are trying to do as there may be a better way of doing it?
Or possibly clear up a misconception on yours or my behalf.
You have given almost nothing to go on to get a comprehensive answer.
Please explain a little more about the reasons behind why you feel you need to do this?
01-15-2014 11:11 AM
Sorry for the less information in my question, but i am not having any error in my program . i just wanted to verify it.
Thanks for all your support.