You left all the `return ES_NORMAL;` statements, which prevent the compilation on Linux - the function is void now, there should only be `return;`
Also, `MCresult -> sets` could be replaced with `ctxt . SetTheResultToCString`