hello ive been working with c++ for a few weeks now and from yesterday ive attempting to write a console game but i keep getting an error.
//where all the noise is coming from
class Story{
public:
Story();
~Story();
void mainMenu();
void start();
private:
void levelOne();
void judgement();
};
Story::Story(){
}
Story::~Story(){
}
//error console
obj\Debug\E\Project3\Project3\GameLoop.o||In function `Story':|
E:\Project3\Project3\story.h|16|multiple definition of `Story::Story()'|
obj\Debug\E\Project3\Project3\story.o:E:\Project3\Project3\story.h|16|first defined here|
obj\Debug\E\Project3\Project3\GameLoop.o||In function `~Story':|
E:\Project3\Project3\story.h|20|multiple definition of `Story::~Story()'|
obj\Debug\E\Project3\Project3\story.o:E:\Project3\Project3\story.h|20|first defined here|
obj\Debug\E\Project3\Project3\GameLoop.o||In function `Story':|
E:\Project3\Project3\story.h|16|multiple definition of `Story::Story()'|
obj\Debug\E\Project3\Project3\story.o:E:\Project3\Project3\story.h|16|first defined here|
obj\Debug\E\Project3\Project3\GameLoop.o||In function `~Story':|
E:\Project3\Project3\story.h|20|multiple definition of `Story::~Story()'|
obj\Debug\E\Project3\Project3\story.o:E:\Project3\Project3\story.h|20|first defined here|
||=== Build finished: 8 errors, 0 warnings ===|