Some obscure problem?

#include "Game.h"

int main()
{
 Game*game = new Game();
game->Execute();
 return 0;
}

Here is the error
LNK1561 entry point must be defined
March 19th 20 at 09:13
2 answers
March 19th 20 at 09:15
Solution
Helped a friend from overseas:
Hey,
You might need to add #define SDL_MAIN_HANDLED before including the SDL headers
- Will
The author of this lesson https://www.willusher.io/sdl2%20tutorials/2013/08/...
March 19th 20 at 09:17
The type of application?
If not the console, you need a WinMain()
SDL, although pure OpenGL works in the console using WinAPI - emie commented on March 19th 20 at 09:20
@emie , project properties -> Linker -> System -> SubSystem. For some subsystems you build the project?
LNK1561 all clearly explained. - furma commented on March 19th 20 at 09:23
@furma,Chose console Severity Code Description Project File Line As suppression
LNK2019 link to unresolved external symbol _main in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ) Demo C:\Users\User\Desktop\Tropic-Island\Tropic-Island\Demo\Demo\MSVCRTD.lib(exe_main.obj) 1 - emie commented on March 19th 20 at 09:26
The same error code from this tutorial https://www.willusher.io/sdl2%20tutorials/2013/08/... - emie commented on March 19th 20 at 09:29

Find more questions by tags C++