IBM Support

Compiler Error: "OMThread() : Candidate expects 4 arguments, 5 provided" when trying to use Rhapsody SXF profile

Troubleshooting


Problem

Create an active thread named CTask100ms with below properties:
task name: "CTask100ms"
priority: OMOSSpecific::getNormalPriority()
stacksize = 500
eventQueueLength = 10
When I generated code, it generates an additional 5th argument "false".
//## class
CTask100ms CTask100ms::CTask100ms(void) : OMThread("Task100ms", OMOSSpecific::getNormalPriority(), 300, 10, false)
When building the code in rhapsody under SXF framework settings it shows error:
"OMThread() : Candidate expects 4 arguments, 5 provided"

Cause

Rhapsody is still trying to generate code for an OXF project. Instead you want Rhapsody to generate code for an SXF project.

You have to add the SafetyCritical settings to the project and set the SXF stereotype on the configuration. See the section on creating an SXF project here:

https://www.ibm.com/support/knowledgecenter/SSB2MU_8.1.0/com.ibm.rhp.frameworks.doc/topics/rhp_c_fw_sxf_framework.html

Document Location

Worldwide

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Component":"","Platform":[{"code":"PF033","label":"Windows"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

ibm11119147