ld
zal niet langer automatisch zoeken in de afhankelijkheden van gelinkte objecten.
A
als bibliotheek B
gebruikt, zal niet compileren behalve als A
en B
beide expliciet gelinkt zijn.
/usr/bin/ld: gpx-parser.o: undefined reference to symbol 'acos@@GLIBC_2.0' /usr/bin/ld: note: 'acos@@GLIBC_2.0' is defined in DSO /lib/libm.so.6 so try adding it to the linker command line
.o
bouwt een expliciete link naar libm nodig.