Shared library initializers

Craig Rodrigues rodrigc@mediaone.net
Thu May 3 07:09:00 GMT 2001


Hi,

This information applies for Linux.

Read the man page for dlopen.

"If  the  library  exports a routine named _init, then that
 code is executed  before  dlopen  returns."

Read the man page for dlclose.
"If the  dynamic  library exports a routine named _fini"

-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
rodrigc@mediaone.net          



More information about the Gcc mailing list