What can you do about the "Undefined Reference to" error?

I started learning C++ and Unreal Engine, so to understand C++ better I tried to write a console game, but when I run my game the terminal window (which appears when you run a console app with VS) closes immediately and in online debuggers only "Undefined Reference to" appears as an error and after that…