I forgot to add that if I link with just '-lstdc++' and not '-lstdc++-2-libc6.1-2.9.0' it links fine.