Some problems with old OpenCV library and haarcascade

what’s the code you’re trying to run? what data (data files) are you trying to run it on? where did you take that file (XML file) from?

generally, a MRE helps