Warning about ofImage


#1

I’m using Qt Creator on debian and i got this warning

ofImage img;

void ofApp::setup(){
	img.allocate(ofGetWidth(), ofGetHeight(), OF_IMAGE_GRAYSCALE);	
}

warning: instantiation of function 'ofImage_::allocate' required here, but no definition is available

i tried to look around but no solution i could found