IBM® Rational® Rhapsody® Developer for C, C++, and Java can
generate code for units.
For code generation to work properly, you
have to adhere to the following rules:
- To generate code for units in a certain language,
the appropriate language must be specified at the component level.
- Elements included in the scope of a component must
be of the same language as the component. (If other language elements
are included in the scope, a warning will be issued during code generation.)
Note: If you select
All Elements as
the scope,
Rational Rhapsody will
automatically include only those units whose language matches that
of the component. If you choose
Selected Elements,
the product will only display those units whose language matches that
of the component. However, if you selected specific elements, and
then changed the language of the component,
Rational Rhapsody will
not remove the selection of these non-matching units. When you attempt
to generate code with such a component, you will receive error messages.
The same principle applies to the
Initial Instances specified
for the configuration.