0

I use Raspberry Pi 3 and program GPIOs using C and Sysfs/WiringPi.

If someone provides a static library (.a file) to work with my Raspberry Pi C project, is there a way to list what functions, with what parameters needed, are available inside this static library?

For instance, if I get "test.a" without any documentation/explanation of it, I want to find out that this static library has

void foo(int param1);
char bar(void);
David Badger
  • 167
  • 6
  • 1
    Something from `binutils` will probably help. I'd start with `nm`. – EOF Dec 14 '20 at 21:12
  • 1
    While the question is similar to the "duplicate" one, mind that with just `nm` you can only get `foo` and `bar` for these functions (assuming C linkage), no parameter or return types. – Fatih BAKIR Dec 14 '20 at 21:15
  • `If someone provides a static library (.a file) to work with my Raspberry Pi C project` then this person provides the `.h` file as well. – 0___________ Dec 14 '20 at 21:15
  • And hopefully some usable documentation as well. – user4581301 Dec 14 '20 at 21:34

0 Answers0