Static library is bundle of several object files which are always compiler specific. So if you try to link a gcc
based lib with IAR
compiler, you will get error at compile time due to mismatch between object file formats to be linked.
You need to rebuild your library using IAR.