Sup peeps, hope you guys can give a mate a hand with this default constructor problem. I get this error when i instantiate a class:
error LNK2019: unresolved external symbol...
This is my LavaLand.h
...
class LavaLand
{
highscore &h;
public:
LavaLand();
void setup();
};
...
LavaLand.cpp
void LavaLand::setup()
{
...
h.scoreboard(getScore());
}
I call this setup() in my Game.cpp
void Game::update()
{
switch (myInput) {
case 1: {
LavaLand ll; <--------- error
ll.setup()
break;
}
}
It has a default constructor but i'm thinking theres something wrong with it though. Hope someone here could help. If you need more code please let me know.
Cheers