Some obscure problem?

#include "Game.h"

int main()
 Game*game = new Game();
 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
Helped a friend from overseas:
You might need to add #define SDL_MAIN_HANDLED before including the SDL headers
- Will
The author of this lesson
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 - emie commented on March 19th 20 at 09:29

Find more questions by tags C++