bad cramps from stool softener?

I'm so constipated my stomach cramps are painful . I was taking them okay for a few days then all of a sudden I got really bad stomach pain . I'm still struggling to go, 24 weeks