SDL2: LNK1561: entry point must be defined

后端 未结 6 1894
天命终不由人
天命终不由人 2020-12-09 04:18

I want to compile this code:

#include 

int main(int argc, char* argv[]) {
    return 0;
}

But it can\'t be linked: Erro

6条回答
  •  感情败类
    2020-12-09 05:09

    Open sdl_main.h

    Change

    #define main sdl_main
    

    to

    #define sdl_main main
    

    now it will work with simple int main() but this is bad hooray to short term solutions

提交回复
热议问题