Possible Duplicate:
What is an undefined reference/unresolved external symbol error and how do I fix it?
I somehow get this error. This is my code:
#ifndef BASESTATION_H_
#define BASESTATION_H_
#include <list>
#include "Song.h"
#include <string>
using mtm::Song;
using std::list;
namespace stations {
class baseStation {
public:
explicit baseStation(double frequency) : frequency(frequency) {}
double getFrequency() const;
bool getIsFullVersion() const;
bool isInPlaylist(const string& author, const string& name) const;
virtual void addSong(const Song& song);
virtual const Song& getCurrentSong() const;
virtual const SongPart& getCurrentlyPlayedPart(unsigned int time) const;
virtual ~baseStation();
private:
//keep it protected or not??
double frequency;
list<Song> playlist;
list<Song>::iterator currentSong;
bool isFullVersion;
};
and the error I get is: undefined reference to `vtable for stations::baseStation' on the "explicit" line.
Thanks a lot.`