[SDL3.x] SDL_Appxxx(…) Compile programs

Thanks to your link I have come one step further.
This line is very important.

#define SDL_MAIN_USE_CALLBACKS

I wanted to try the following examples and they are missing everywhere.

Now it can be compiled as follows.

g++ main_GLSE.c -lSDL3 -lGL

It just doesn’t seem to work with pure c.

Is there also a way to make it work with gcc?