I'm making a plugin and I'm trying to compile a file in this way: gcc -o myprog -fplugin=./myPlugin.so -flto andres.c and I'm having the following issue: lto1: error: cannot load plugin: .../myPlugin.so .../myPlugin.so: undefined symbol: parse_in lto-wrapper: /home/andres/Escritorio/gcc-4.9.2/install/bin/gcc returned 1 exit status /usr/bin/ld: lto-wrapper failed collect2: error: ld returned 1 exit status I'd like to know if there's some way to avoid lto1 trying to load my plugin. Regards, Andrés.