Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-21478

Unhelpful error when calling a EMBED(C++: activity) and trying to assign result to scalar

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Code Generator
    • Labels:
      None
    • Compatibility:
      Point

      Description

      Example error:

      eclcc: W20190212-134640_1.cpp(20,18): Error C6003: ‘activityContext’ was not declared in this scope
      eclcc: W20190212-134640(0,0): Error C3000: Compile/Link failed for W20190212-134640 (see '//192.168.9.108/home/jsmith/hpccdeb/var/lib/HPCCSystems/myeclccserver/W20190212-134640.eclcc.log' for details)
      2 error(s), 0 warning(s)

      From this test query:

      rec := { string f1; };
      
      UNSIGNED4 myfunc(STREAMED DATASET(rec) recs) := EMBED(C++: activity)
        #body
        return 0;
      ENDEMBED;
      
      myfunc(DATASET([{'f1'}], rec));
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ghalliday Gavin Halliday
                Reporter:
                jakesmith Jake Smith
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: