https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113617
--- Comment #22 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Francois-Xavier Coudert from comment #21) > That reduces a lot, but it's still missing main: > > Excess errors: > Undefined symbols for architecture x86_64: > "_main", referenced from: > <initial-undefines> This is a shared library, so why should it have main?