Have you checked her poop?

As someone else said, it could be very hard. As well as there could be something that she's been eating that's been poking her bum.

Can dogs have hemroids? If so, that could be another thing.

Taking her to the vet is the only for-sure way.

Neither of my dogs have cried while pooping, nor have I heard of anyone else's.