Dear NXP Team,
I have a source file filename.c and its corresponding header filename.h. Within filename.c, I define and initialize some global variables, which are declared as extern in filename.h.
I have compiled filename.c into a static library file (filename.a). However, when linking this static library, I encounter "undefined reference" errors related to those global variables.

Could you please provide guidance or best practices on how to correctly manage these global variables with extern declarations and static library creation to resolve the undefined reference issue?
Thank you for your support.
Best regards,
P.Ranjth kumar