Learning C++ at the minute and am writing a program which solves a Sudoku puzzle. Just as I was ironing out some of the creases I went to run the program and the error LNK2019 has appeared.
error LNK2019: unresolved external symbol _main referenced in function __tmainCRTStartup
I've gone through and checked that I'm using SubSystem Console rather than Windows, however all of the "solutions" on the internet use external dependencies that they know of.
The only #include's I'm using are Windows.h for performance related figures, fstream for reading the puzzle and iostream for writing to the console. Oh and I'm using namespace std too.
I'm really stuck about where the error is coming from as I'm not using any other files, plus I've turned pre-compiled header files off too.