Menu

#222 Compilation error in QM generated code for QP/C++ in Spy build configuration

QM
closed
None
1
2018-09-11
2018-09-04
No

C++ code generated by QM 4.3.0 does not compile for the Spy build configuration (Q_SPY defined). Specifically, the g++ compiler reports the following errors:

return QM_ENTRY(&SubStateName_s);
                    ^
expanded from macro 'QM_ENTRY'
#define QM_ENTRY(state_)  (me->qm_entry_((state_)))
                                                                                                                           ^

This error only appears when a submachine has no explicit Entry action (the Entry filed in the submachine property sheet is left empty). The error goes away when the Entry action is provided (it could be just a comment in the property sheet.)

--MMS

Discussion

  • Quantum Leaps

    Quantum Leaps - 2018-09-04
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,7 +1,7 @@
     C++ code generated by QM 4.3.0 does not compile for the Spy build configuration (Q_SPY defined). Specifically, the g++ compiler reports the following errors:
    
    -r~~~
    -eturn QM_ENTRY(&SubStateName_s);
    +~~~
    +return QM_ENTRY(&SubStateName_s);
                         ^
     expanded from macro 'QM_ENTRY'
     #define QM_ENTRY(state_)  (me->qm_entry_((state_)))
    
     
  • Quantum Leaps

    Quantum Leaps - 2018-09-04
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -7,3 +7,7 @@
     #define QM_ENTRY(state_)  (me->qm_entry_((state_)))
                                                                                                                                ^
     ~~~
    +
    +This error only appears when a submachine has no explicit Entry action (the Entry filed in the submachine property sheet is left empty). The error goes away when the Entry action is provided (it could be just a comment in the property sheet.)
    +
    +--MMS
    
     
  • Quantum Leaps

    Quantum Leaps - 2018-09-11
    • status: open --> closed
     
  • Quantum Leaps

    Quantum Leaps - 2018-09-11

    Fixed in QM 4.3.1.
    --MMS

     

Anonymous
Anonymous

Add attachments
Cancel