The member variables
step_pin
and
dir_pin
are missing. So add them to your class:
class FLOP{
public:
FLOP(int steppin,int dirpin);
void clockwise(int steps);
void counterclockwise(int steps);
protected:
int dir_pin;
int step_pin;
};
and change your constructor to:
FLOP::FLOP(int steppin , int dirpin){
pinMode(steppin,OUTPUT);
pinMode(dirpin,OUTPUT);
step_pin = steppin;
dir_pin = dirpin;
}