How can I find out functions that are not in the library, but that are present in the open header file released with the library?

We have an obsolete library implementation and associated open header files. Recently, we found that some of the functions of the open header file do not have corresponding definitions in the library implementation.

We want to check if there can be several more such functions. Is there an easier way to do this, rather than sifting through every API present in the header and then checking to see if there is a definition for it?

+5
source share
4 answers

C (Perl - !), . Linker .

+1

ABI abi-compliance-checker:

abi-compliance-checker -lib NAME -dump DESC.xml

DESC.xml :

<version>
    1.0
</version>

<headers>
    /path(s)/to/headers
</headers>

<libs>
    /path(s)/to/libraries
</libs>

ABI , , (SymbolInfo), , (Symbols).

ABI xml, --xml.

+1

C, - :

printf("", /* insert all functions here */);

printf. , , .

( ++ , .)

0

I would like to use ctagsto create a list of identifiers of the header file, and then use ar, emfaror elfdumpon Unix or lib.exeor dumpbin.exein Windows (see. The discussion here ), to reset the list of identifiers from the library, and then sort diffthe two lists.

0
source

All Articles