unresolved external symbol
<p>I am about two weeks into learning c++ and have decided to start a football simulation game. I have made a class called player and since then I have been getting a compilation error. However, even if I comment out the class I still get the error:</p>

<p>1>football1.obj : error LNK2019: unresolved external symbol "public: __thiscall player::player(void)" (??0player@@QAE@XZ) referenced in function _wmain</p>

<p>Here is the code:</p>

<pre><code>// football.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#define _WIN32_WINNT  0x0500
#include &lt;windows.h&gt;
#include &lt;Wincon.h&gt;
#include &lt;iostream&gt;
#include &lt;stdlib.h&gt;
using namespace std;

class player{
private:
    static const int quarterbackspeed=10;
public:
    player();
    int ret(){return quarterbackspeed;}
};

int _tmain(int argc, _TCHAR* argv[])
{
    //maximize console window
    HWND hWnd = GetConsoleWindow();
    ShowWindow(hWnd,SW_SHOWMAXIMIZED);  
    //DECLARE FOOTBALL FIELD
    char field[27][57];
    //declare sidelines x=0,x=51,y=0,y=121
    int times=0;
    for(int declarex=0;times&lt;2;declarex=26){
        for(int declarey=0;declarey&lt;57;declarey++){
            field[declarex][declarey]='x';}times++;}
    times=0;
    for(int declarey=0;times&lt;2;declarey=56){
        for(int declarex=1;declarex&lt;26;declarex++){
            field[declarex][declarey]='x';}times++;}
    //declare north endzone
    for(int declarey=1;declarey&lt;3;declarey++){
        for(int declarex=1;declarex&lt;26;declarex++){
            field[declarex][declarey]='*';}}
    //declare south endzone
    for(int declarey=54;declarey&lt;56;declarey++){
        for(int declarex=1;declarex&lt;26;declarex++){
            field[declarex][declarey]='*';}}
    //declare playing field
    for(int declarex=1;declarex&lt;26;declarex++){
        for(int declarey=3;declarey&lt;54;declarey++){
            field[declarex][declarey]=' ';}}
    //DECLARE PLAYERS
    player manning;
    cout&lt;&lt;manning.ret();
    //display field
    for (int declarey=0;declarey&lt;57;declarey++){
        cout&lt;&lt;endl;
        for (int declarex=0;declarex&lt;27;declarex++){
            cout&lt;&lt;field[declarex][declarey];}}

    system("PAUSE");

    return 0;
}
</code></pre>
