i’m changing a 32 bits game that i have with winapi, to sdl, I tried diferents codes, now i have this in my principal file, i’m using microsoft visual studio.
So in SDL3, you can just include SDL3/SDL_main.h, and it’ll handle this for you. So you just have to have a main(argc, argv) function, and SDL will provide the WinMain magic for you.
Relavant documentation here:
I think the error was saying that in his WinMain function, he’s calling SDL_Init, but the linker can’t find that symbol, but maybe I’m misreading it.