Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find out functions missing from a library, but which are present in the exposed header file released along with the library?

We have a legacy library implementation and associated exposed header files. Recently we found that, some of the functions in the exposed header file, don't have corresponding definitions in the library implementation.

We want to check if there could be some more such functions. Is there any easier way of doing this rather than sifting through each and every API present in header and then checking if there is a definition for it?

like image 857
Jay Avatar asked Nov 03 '22 05:11

Jay


1 Answers

You can generate C source from the header (Perl is a way to go!) that calls all the functions and try to compile it. Linker will complain about missing functions.

like image 98
qrdl Avatar answered Nov 15 '22 04:11

qrdl