How do you get the stink out of your gym clothes?

I've always had this problem, haven't tried very hard to solve it, just assumed it was permanent.