SDL_Surface only black color


I am fairly new to SDL2 and I am facing a problem. I can’t figure out why my surface is always black.
I am using the function SDL_Surface, and even after looking the documentation about the function i can’t understand how to use it. I just want to create a surface with a red background
So far I have tried :
SDL_CreateRGBSurface(0, 200, 25, 32, 255, 0, 0, 0, 0);
SDL_CreateRGBSurface(0, 200, 25, 32, 0xff000000, 0x00000000, 0x00000000, 0);

As I am not native english, I have some troubles understanding the documentation and I can’t find viable example of this function.

Any help about this would be appreciate.

I am guessing here but it looks like the alpha mask is set to 0, try setting this to 255

Try SDL_CreateRGBSurface(0, 200, 25, 32, 255, 0, 0, 255);

I would need to see more code to be able to help.

I’ll give it a try tonight when i’ll come home.

Otherwise here is a bit of more code :
Life::Life() {
container = SDL_CreateRGBSurface(0, 200, 25, 32, 255, 0, 0, 0, 0);

void Life::draw(SDL_Surface*& surface) {
    SDL_BlitSurface(container, NULL, surface, NULL);

and I am calling that function in a render function in the main loop.

void Game::render(){
    SDL_BlitSurface(optimized, NULL, surface, NULL); // the background