Objects in Array C++ issue
<p>I'm making a simple game involving a Player class and have made an array to hold players when they've been instantiated. The problem is, every time I run the program, I get LNK 2019 errors-"unresolved external symbol". I am not sure why this is happening or how to get it working properly. Any help would be much appreciated.</p>

<pre><code>Player *player = new Player[9];
for(int i = 0; i&lt; world1.numPlayers;i++) // ADD PLAYERS TO ARRAY
{
    Player tempplayer(3,3,5,1);
    player[i] = tempplayer;

}
</code></pre>

<p>This is the Player Class definition:</p>

<pre><code>#pragma once
class Player
{
public:
Player(int width, int height, int xPos, int health );
~Player(void);
Player();
int getWidth();
int getHeight();
int getHealth();
int getPos();
void setHealth(int newHealth);
bool isAlive();
int width;
int height;
int health;
int xPos;

    };
</code></pre>

<p>Here is the exact warning: "Error 1 error LNK2019: unresolved external symbol "public: __thiscall Player::Player(void)" (??0Player@@QAE@XZ) referenced in function _main C:\Users\Alex\Documents\Visual Studio 2012\Projects\ConsoleApplication2\ConsoleApplication2\World.obj ConsoleApplicati‌​on2" </p>
