Just though i would post a link to this page
http://www.network-theory.co.uk/gcc/intro/as I struggled with GCC setup and found it very hard to find the answers to question regarding using GCC.
so if you want to know why you lib's are not linking and what to do about it read this.
Regards