I’m missing something too then, because I got this same error in ubuntu. To get my program to compile I modified the header files and changed the offending &s to *s. Having done that, there were new errors regarding multiple redefinition of inline methods, which I got rid of by prefixing them with ‘static’. This may of course be a terrible way to circumvent these errors, so try at your own risk. I have no idea if it may cause bugs somewhere down the line but at least for now, my program seems to do exactly what it should (which is to erode images)!