I know this is probably an unbelievably simple error somewhere, but I can't see it. I keep getting "undefined reference to Machine::Machine()" and all of Machine's other functions.
main.cpp
#include "machine.h"
using namespace std;
int main(int argc, char** argv) {
Machine* m = new Machine();
m->reset();
m->run();
delete m;
return 0;
}
machine.h
#ifndef _MACHINE_H_
#define _MACHINE_H_
#include "user.h"
class Machine {
public:
Machine();
~Machine();
void run();
void reset();
private:
User currentUser;
};
#endif
machine.cpp
#include "machine.h"
Machine::Machine() {
}
Machine::~Machine() {
}
void Machine::run() {
}
void Machine::reset() {
}
I know I'm going to kick myself once someone answers this. Thanks in advance.
-andrax