Shouldn't this be `stubFunc`? Also, you might want to `CV_EXPORTS` this, or it might break on Windows. (I've heard rumors that MS link will not create an import library if there are no exports, and then it will all break. Might want to test this, if you can.)