In a mixing bowl, combine all the dry ingredients well.
In another container, mix the oil and eggs, then incorporate the mixture into the rest of the dry ingredients.
Preheat the oven to 180°C.
Peel, wash, and grate the carrots; add them to the batter along with the vanilla, then mix.
Pour the batter into a loaf pan or cake tin that has been greased and floured.
Bake for 40 to 50 minutes, until the cake is golden brown.Check whether it is cooked by inserting a knife; the blade should come out of the cake dry. Remove from the oven and let cool.
Gently unmold the cake and cut it in half horizontally.
For the frosting, mix all the ingredients together thoroughly.
Spread a layer of frosting over the bottom half of the cake, then place the second half on top.
Spread the remaining frosting over the top—and optionally the sides—of the cake, then decorate with the pecans, either whole or crushed.