SDL2: LNK1561: entry point must be defined

后端 未结 6 1876
天命终不由人
天命终不由人 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 04:48

    According to this thread on Dream.In.Code:

    Right click on project name -> Properties -> Expand Linker tab -> System -> SubSystem: make sure that it is Console (/SUBSYSTEM:CONSOLE)

    Alternatively, if you want to hide the console window or are debugging a multithreaded application, you should set the SubSystem to Window (/SUBSYSTEM:WINDOW) instead.

提交回复
热议问题