Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Use of undeclared identifier 'tmperr_ies'

    Cinema 4D SDK
    2
    3
    518
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rui_mac
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • r_giganteR
        r_gigante
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • R
          rui_mac
          last edited by

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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post