Troubleshooting
Problem
Attempt to realize an interface and inheriting a class with triggered operation result in error “C2385: ambiguous access of ‘setActiveContext’" while building IBM Rational Rhapsody project.
Symptom
The full error message is as follows:
Create a sample Rational Rhapsody project with an Interface say Interface_1 and two classes say Base_Class and Derived_Class.
Cause
Rational Rhapsody is getting confused as to which OMReactive to use, as both interface and base class includes OMReactive.
Resolving The Problem
SOLUTION:
- Navigate to the Interface_1 Feature.
- Uncheck the property, CPP_CG::Framework::ReactiveBaseUsage.
- Verify if Rational Rhapsody project is build successfully.
NOTE: The ReactiveBaseUsage property specifies whether to use the class specified by the ReactiveBase property as the base class for all reactive objects. By Default it is checked
Product Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg21663926