error: undefined reference to vtable
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
|
#ifndef AHASHMAP_H
#define AHASHMAP_H
#include "LinkedHashEntry.h"
#include <iostream>
using namespace std;
const int TABLE_SIZE = 128;
class aHashMap
{
private:
LinkedHashEntry **table;
public:
aHashMap()
{
table = new LinkedHashEntry*[TABLE_SIZE];
}
virtual ~aHashMap();
protected:
};
#endif // AHASHMAP_H
|
int the main. cpp, when i type
|
aHashMap *c = new aHashMap();
|
I get the error
"undefined reference to 'vtable of aHashMap' "
What is the problem ? What am I doing wrong ?
Could you post LinkedHashEntry.h ?
Topic archived. No new replies allowed.