im having some trouble with compiling a c++ project, keep getting:
undefined reference to 'typeinfo for FileModule'
FileModule is a base class with some classes inheriting it. FileModule itself is inheriting from a base class called Module, using its constructor. any ideas how to fix it?
some code:
#ifndef FILE_MODULE
#define FILE_MODULE
#include "module.h"
class FileModule: public Module
{
public:
FileModule(){}
FileModule(int id): Module(id) {}
void getFileModule() const { return; }
//FileModule* create(int type);
virtual ~FileModule(){}
virtual string getValue()= 0;
virtual void assign(string toAssign, int location = 0) = 0;
};