Let's start with CTrackSelection .
Since the class is called CTrackSelection the forward declaration of the functions must be the same so instead of :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
Track::Track(){
}
char Track::getTrack(){
return Track;
}
void Track::setTrack(int newTrack){
Track = newTrack;
}
|
you should have
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
CTrackSelection::CTrackSelection(){
}
char CTrackSelection::getTrack(){
return track;
}
void CTrackSelection::setTrack(int newTrack){
track = newTrack;
}
|
also you should declare the
CTrackSelection::CTrackSelection()
constructor in the header .
so I guess that would become :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
//DRtrackselection.h
#ifndef _DRTRACKSELECTION_H_
#define _DRTRACKSELECTION_H_
class CTrackSelection {
public:
CTrackSelection();
char getTrack();
void setTrack(int newValue);
protected:
int track;
};
#endif
|
also, you can't include a header that you haven't defined yet and I don't see why you would include
#include "DRtrackselection.h"
in DRtrackselection.h . Headerception .
Furthermore, why do you have
int track;
protected and not private ? do you plan on inheriting the track class ?
Try to repair all files in the same manner , maybe it helps :)