 with a static library the symbol lookup stops at the first symbol – even if it is just weak and an object file with a strong symbol is also included in the library archive.On Linux, the linker option codice_17 changes that behavior.The weak function attribute is supposed to be used on function declarations.