I am trying to integrate dlib 19.17 with Unreal 4.22. On including the dlib header i.e. "#include “dlib/image_processing/frontal_face_detector.h” I face the problem below:
I have a UTexture2D* variable called texture. UTexture2D has a function called UpdateResource(). WinBase.h has a macro called “UpdateResource” that calls “UpdateResourceW”. When I call “texture->UpdateResource();”, I get the error “class “UTexture2D” has no member “UpdateResourceW”” (despite not even including winbase.h). Going to the definition in VS takes me to that #define in WinBase.h. So that define in winbase is overwriting the function call, renaming it to UpdateResourceW I guess because of the dlib’s dependency on Winbase.
Any solution as how to tackle this ?