Well, well. Now my code builds but it seems that the call of SDL_Init fails. I wonder if SDL3.lib is okay since I built it myself using Visual Studio. Maybe there is some prebuilt version available somewhere?