Are static c libraries created with one compiler compatible with another?
问题 In my case I have a library built with code sourcery gcc targeting arm cortex-m4. I am trying to then link that library into a project being compiled with IAR compiler. Is it possible to do this or does the library have to be rebuilt with the new tools? What factors affect this? 回答1: 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