Hello every body,
i know how to build a library file.
but now i need a library file that need a .h file for some defines. i have some constant that define pin map of board,i want make a .lib file that exclude one of header files, and when i want use this library file i must include a header file to main.c until project can compile. is it possible? if yes,how?
Regards, Ham Lot
No. You maintain the interface description as header file as part of the library. Projects using that library get handed both the library file and the header.
That means if you have some .h files within the library that are intended to be internal to the library, they will be exposed, correct? I can easily live with that. There's no perfect solution short of some complex scheme not worth pursuing.
Thanks!