E
E
Evgeny Petryaev2019-03-29 18:09:58
C++ / C#
Evgeny Petryaev, 2019-03-29 18:09:58

Some weird problem?

#include "Game.h"

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

Here is the error
LNK1561 entry point must be defined

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Petryaev, 2019-03-29
@Gremlin92

A friend from across the ocean helped:
Hey,
You might need to add #define SDL_MAIN_HANDLED before including the SDL headers
- Will
Author of this tutorial https://www.willusher.io/sdl2%20tutorials/2013/08/...

G
gvalex, 2019-03-29
@gvalex

Application type?
If not a console, then you need WinMain ()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question