How to fix c++ compilation errors

thanks a lot.
It works for me perfectly as I am using a plugin that is no longer available.