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

后端 未结 7 1045
一整个雨季
一整个雨季 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:19

    You need to add these to linker libraries with the same order:

    mingw32
    SDL2main
    SDL2
    

    Note that the order is important.

提交回复
热议问题