Undefined symbols when linking application to library

[duplicate]