Compiling example missing header file

Ok. I’m a complete C++ novice. Went thru the Lynda.com course a couple years back but obviously have forgotten most of what I learned:(. Trying to simply compile this example here

difference map example

which seems to be missing the header file.

Can any C++ gurus lend a helping hand?

If I were you, I’d first try to play with the examples coming with openFrameworks (as opposed to stuff posted on the forum) as they are pretty self contained and meant for learning how to use the library. In particular you may want to look at the videoplayer example, the video grabber example and some of the opencv examples (by making sense of those individually you should be able to understand what going on on the thing you link).

thanks. I’ve tried recreating the header. but get the following error

No member named ‘idleMovie’ in ‘ofVideoPlayer’

#pragma once

#include "ofMain.h"
#include "ofxOpenCv.h"

class ofApp : public ofBaseApp{

	public:
		void setup();
		void update();
		void draw();
		void keyPressed(int key);
		void keyReleased(int key);
		void mouseMoved(int x, int y );
		void mouseDragged(int x, int y, int button);
		void mousePressed(int x, int y, int button);
		void mouseReleased(int x, int y, int button);
		void windowResized(int w, int h);
		void dragEvent(ofDragInfo dragInfo);
		void gotMessage(ofMessage msg);
		int videoWidth;
		int videoHeight;
		int outputWidth;
		int outputHeight;
        int threshold;
		ofVideoGrabber vidGrabber;
		ofVideoPlayer vidPlayer;

        ofxCvColorImage colorImg;
		ofxCvGrayscaleImage grayImage;
		ofxCvGrayscaleImage grayBg;
		ofxCvGrayscaleImage grayDiff;
		ofTexture maskedImg;
        bool bLearnBakground;
    
    
    
 }

;

The example you are trying to compile was made a while ago and the APIs have changed a little.

vidPlayer.idleMovie(); is now vidPlayer.update();

and vidGrabber.grabFrame(); got replaced by vidGrabber.update();

Thanks yes got it