Use of undeclared identifier 'tmperr_ies'



  • I'm trying to get my plugins up and running with the new serialisation scheme of R21.
    But, when I type this:

    maxon::String prodID,sysID,userID,licenseID, userName;
    GetGeneralLicensingInformation(prodID, sysID, userID, licenseID, userName) iferr_return;

    I get an error in the "iferr_return;" and the error is: Use of undeclared identifier 'tmperr_ies'
    What could be going wrong?
    I'm on Mac OS 10.15.1, Xcode 11.2.1



  • Hi Rui, thanks for reaching out us.

    With regard to the issue you mention, it's caused by the fact that the iferr_return statement requires the tmperr_ies identifier to exist. This is usually managed by adding the iferr_scope; at the beginning of the code fragment where error handling is involved (usually at the very top of the function/method implementation).

    Error handling is properly explained in this manual but mostly important have a look at the Error Scope section.

    Best, Riccardo



  • Hi Rui, thanks for reaching out us.

    With regard to the issue you mention, it's caused by the fact that the iferr_return statement requires the tmperr_ies identifier to exist. This is usually managed by adding the iferr_scope; at the beginning of the code fragment where error handling is involved (usually at the very top of the function/method implementation).

    Error handling is properly explained in this manual but mostly important have a look at the Error Scope section.

    Best, Riccardo



  • Thank you very much, RIccardo.
    I will look into it tonight when I get home.


Log in to reply