I believe that CV_EXPORTS is useless here and below: it is a non-public struct and there are nothing to export (there are only non-static fields).