Template header... headache...
Posted on 2007-03-25
I have the following problem which I am confused about. So I would like some explanation if possible.
Now, I have 3 cpp files, 2 .h headers.
template <class ListDat>
void add(ListDat data);
bool first_item(ListDat &data);
bool next_item(ListDat &data);
//void Add(list<int> first, list<int> second, list<int> &result);
void Add(BigNumber first, BigNumber second, BigNumber &result);
ok, so Now in BigNumber.cpp, i have:
Here is the problem, whenever I tried to compile this, I get all these unresolved names error from the linker.. can anyone tell me what is wrong?
I have tried having all code in one cpp file, and it worked perfectly fine... its only when I have them seperated into their own files and written their own headers that this happens.
Thanks in advanced