SDL 2 Undefined Reference to “WinMain@16” and several SDL functions

后端 未结 7 1060
一整个雨季
一整个雨季 2020-12-06 19:41

I\'ve just installed SDL 2 and I have some serious problems. This is my code:

#include 

int main(int argc, char* argv[]){
SDL_Init( SDL_I         


        
7条回答
  •  醉话见心
    2020-12-06 20:03

    I think you want

    #define SDL_MAIN_HANDLED
    

    in your main file, BEFORE the line

    #include 
    

    from: https://stackoverflow.com/a/32343111/5214543

提交回复
热议问题