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
The linker isn't involved in defines, it can only fix up symbols.
Defines are handled by the compiler's pre-processor.
You need to use variables the library can read, or structures/bitvectors which provide configurations/settings.
Thank you,
my problem solved by your guidance.