SDL2 Undefined references to functions

后端 未结 2 1129
执念已碎
执念已碎 2021-01-21 09:10

I\'m trying to set up a C++ project that builds on MinGW and uses SDL. When i try to compile my program, g++ says undefined reference to \'SDL_Function\' for each S

2条回答
  •  离开以前
    2021-01-21 09:45

    I changed the sequence of the input parameters and it worked, put SDL2main before SLD2.

提交回复
热议问题