I'm working on a project which is essentially developing an API to sit
on top of our current code base; when I'm done I'll have a single
libwhatever.a file and whatever.h header file, so all that people will
have to do is include the header file and link to the library, and
presto, they can use the code through the API. Simple enough.
The problem I'm having is that the code I want to use resides in a
handful of different library files; I'd really like to just deliver one
library, and additionally, I'd like only the symbols defined in the API
to be visible (via nm or what-have-you) and none of the internal
functions should be visible.
To be a little more detailed: I've got around 6 .a files, and a single
.cpp and .h file which define the API. The .a files were created simply
by running "ar libwhatever.a file1.o file2.o ... " on Linux-elf.
Thanks for any help and advice!
5. library file