Side effect of medication

What an one do to combat weight gain if weight gain is a side effect of a prescription medication? It's such a dilemma!