How to resolve 'ld: 0711-317 ERROR: Undefined symbol' linking messages