Contribute  :  Calendar  :  Advanced Search  :  Site Statistics  :  Directory  :  Files to download  :  Links for developers  :  Privacy policy  :  Web Resources  :  Polls  
    MacOSX Guru Site Information, tips and tricks, FAQ for Mac OS X developers    
 Welcome to MacOSX Guru Site
 Monday, July 24 2017 @ 03:33 PM BST

How to find if a binary is linked against a library at runtime ?

   
OS X FAQNeed to find - at runtime - if the running application has been linked against a particular library, how to ?

by polling the _dyld_get_image_name() function until the targeted dylib is found.
#include	
#include	

int main (int argc, char **argv)
{
	
	unsigned long imageIndex, imageCount = _dyld_image_count();
	
	for( imageIndex = 0; imageIndex 
 

What's Related

Story Options

How to find if a binary is linked against a library at runtime ? | 0 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
 Copyright © 2017 MacOSX Guru Site
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.06 seconds