IBM Support

How to stop generating the main function in IBM Engineering System Design Rhapsody

Question & Answer


Question

Is it possible to configure IBM Engineering System design Rhapsody not to generate the MainDefaultComponent.cpp and MainDefaultComponent.h files when project does not have “main” function?

Answer

There is a configuration CG::Configuration::MainGenerationScheme property, which prevents main function generation.  Rhapsody still generates almost empty main files.
In order to avoid it, you can define component file with the same name (MainDefaultComponent) and set CPP_CG::File::Generate property to False.

[{"Type":"MASTER","Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"ARM Category":[{"code":"a8m50000000CjTuAAK","label":"Rhapsody->Code->Generation"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.0.1"}]

Document Information

Modified date:
27 May 2022

UID

ibm16516430