どういうわけかこのエラーが発生します。これは私のコードです:
#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;
};
そして、私が得るエラーは次のとおりです。「明示的」行の「vtablefor station::baseStation」への未定義の参照。
どうもありがとうございました。`