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

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

    I struggled with this forever.

    Simply move the sdl files out of your program files to your desktop or documents etc and link them to C from there.

    Think it has something to do with Windows not allowing C to access them or something.

    Hope this helps Cool

提交回复
热议问题