私のコードが壊れている理由がわかりません。すべてのC++ "undefined reference to ..."
まず、コード:
Timer.h:
#include [...]
class Timer {
public:
[...]
Timer operator+(double);
[...]
private:
[...]
void correctthedate(int day, int month, int year);
[...]
};
Timer.cc:
#include "Timer.h"
using namespace std;
[...]
void correctthedate(int day, int month, int year) {
[...]
}
[...]
Timer Timer::operator+(double plush) {
[...]
correctthedate(curday, curmonth, curyear);
return *this;
}
私がコンパイルしようとすると、私はエラーを取得:
をTimer.o: In function `Timer::operator+(double)':
Timer.cc:(.text+0x1ad3): undefined reference to `Timer::correctthedate(int, int, int)'
右のdirのポインタ何か?ありがとう!
時間/タイマー?ここにはミックスがあります。 – crashmstr