www.delorie.com/gnu/docs/dld/dld_11.html   search  
 
Buy GNU books!


Dld

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.6 Listing the Undefined Symbols

Function: char **dld_list_undefined_sym ()
The function dld_list_undefined_sym returns an array of undefined global symbol names.

The list returned contains all the symbols that have been referenced by some modules but have not been defined. This function is designed for debugging, especially in the case when a function is found to be not executable but you do not know what the missing symbols are.

The length of the array is given by the global variable dld_undefined_sym_count, which always holds the current total number of undefined global symbols. Note that all C symbols are listed in their internal representation--i.e., they are prefixed by the underscore character `_'.

Storage for the array returned is allocated by malloc. It is the programmer's responsibility to release this storage by free when it is not needed anymore.


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2003   by The Free Software Foundation     Updated Jun 2003