> Could anyone tell me where my mistake is? Try running clang -flto a.o b.o -o main -v it should print how clang is running the linker. See if it is running the linker you expect and if it is passing -plugin to it. Cheers, Rafael