Program ok in XP, but gives library error in XUbuntu?

Because they use different versions of avr-gcc