i keep getting this error in my main.cpp
main.cpp:17: undefined reference to `Game::Game()'
this is the code i have pertaining to the error
#include "Game.h"
#include<iostream>
#include<cstring>
#include<iomanip>
#include<cctype>
#include<fstream>
#include<string>
int main()
{
ifstream din;
Game output;
output.fillGame(din);
return 0;
}
i doubt it but just in case here is the game.cpp file
#include<iostream>
#include "Game.h"
#include<fstream>
bool Game::fillGame(ifstream & din)
{
int round_Of;
//ifstream din;
din.open("file.txt");
if(!din)
cout << "Error: file could not be found";
else
{
din >> round_Of;
while(!din.eof())
{
cout << round_Of;
din >> round_Of;
}
cout << endl << endl;
din.close();
}
return true;
}
and .h file. there is other stuff but i didn't include it because it doesn't go with this question
class Game
{
public:
bool fillGame(ifstream & din);
};