Error LNK2019 unresolved external symbol _WinMain@16 referenced in function “int __cdecl invoke_main(void)” (?invoke_main@@YAHXZ)

后端 未结 4 832
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-14 07:30

This is my script i have no idea to solve this error Please help me Thank you so much

float angle = 15;
float x, y, z;               // for polygon rotate 

voi         


        
4条回答
  •  时光说笑
    2021-02-14 07:57

    As workaround you can add WinMain function from which call main:

    #ifdef _WIN32
    int APIENTRY WinMain(HINSTANCE hInstance,
        HINSTANCE hPrevInstance,
        LPSTR lpCmdLine, int nCmdShow)
    {
        return main(__argc, __argv);
    }
    #endif
    

提交回复
热议问题