Help with my C++ code

When my LargeIn.h implement the DoublyLink.h It come up the error message.Severity

Error LNK2019 unresolved external symbol "public: __thiscall DoublyLink<int>::DoublyLink<int>(class DoublyLink<int> &)" (??0?$DoublyLink@H@@QAE@AAV0@@Z) referenced in function "public: __thiscall LargeInt::LargeInt(class LargeInt &)" (??0LargeInt@@QAE@AAV0@@Z)

Can someone help?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
  Here is my code:
========================================================================
#ifndef DoublyLink_h
#define DoublyLink_h
#include <iostream>
using namespace std;

template <class x>
struct node
{
	x info;
	node *next;
	node *prev;
};
template<class x>
class DoublyLink
{
	protected:
		node<x> *first;
		node<x> *last;
		int length;

	public:
		DoublyLink();
		DoublyLink(DoublyLink<x>&);
		~DoublyLink();
		void operator=(DoublyLink<x>&);
		void InsertItem(x item);
		bool isFull();
		bool isEmpty();
		void print();
		int ListLength();

};
#endif 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef LargeInt_h
#define LargeInt_h
#include <iostream>
#include "DoublyLink.h"

using namespace std;

class LargeInt
{

	protected:
		int length;
		int	max;
		int *info;
		DoublyLink<int> num;

	public:
		LargeInt(int = 10000);
		LargeInt operator= (const LargeInt& other);
		LargeInt operator+ (const LargeInt& other);
		bool operator== (const LargeInt& other);
		friend ostream& operator<< (ostream&, LargeInt&);
		friend istream& operator>> (istream&, LargeInt&);

};
#endif 
Last edited on
Sorry, I have no idea. But, I suggest you post the error message as well. That might give some helpful information.
Topic archived. No new replies allowed.