2 errors the moment I start a new project, LNK2019 and LNK1120

I just started a new project trying to do my work, but I get 2 errors right off the bet.

The 2 errors are:

1. error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
2. error LNK1120: 1 unresolved externals

All I have is a really short (.h) file.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <string>

    using namespace std;

    class cardType
    {
        public:
	    void printCard() const;

	    void createChar(int charIndex, string charName);

	    cardType(int charIndex = 1, string charName = "John");

        private:
    };


I have tried searching the forums and I realised these 2 errors are common, but the answers are usually related to SqlLib, which I have nothing to do with while some answers are unanswered. Can anyone figure this out help me to fix this?
you need a main in your project
Topic archived. No new replies allowed.