Linking order is important.

If lib C depends on lib B and lib B depends on lib A then the
correct linking order is CBA.