IBM Support

Error 'symbol is not found' during code compilation from Rhapsody

Troubleshooting


Problem

Error 'symbol is not found' during code compilation from IBM Rational Rhapsody if the order of header file is incorrect

Symptom

Compilation error "symbol is not found" is noticed.

Cause

You have included the header file in wrong order. May be a reason of reverse engineering approach or roundtrip.

Diagnosing The Problem

For any such compilation error regarding the framework, check the order of header file included in your code

Resolving The Problem

To resolve the error, you need to perform the steps below:

  1. Go to menu option View , click ->Browser Display Options->Show Source Artifacts.
  2. You now notice the Rhapsody browser open package ->SourceArtifacts.
  3. Double Click on .cpp->Elements and there you can see the order of the header file inclusion.
  4. You can change the order of header file inclusion as follows.
    <oxf\oxf.h>
    <oxf/omthread.h>

    Note: Inclusion of <oxf/omthread.h> first and then <oxf\oxf.h> is incorrect as the symbols defined in <oxf\oxf.h> is not made available to <pxf/omthread.h>

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

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21976891