About this task
In IBM® Rational® Rhapsody® Developer for C,
you can use the following shortcut in place of Steps 2–7 inUsing the component model .
Procedure
- Create a hierarchy of packages as needed
for the proper #include path.
For example, suppose you want reference class C,
which is defined in C:\MyProjects\Project1\MySubsystem\C.h;
you would create the package MySubsystem.
- Set the CG::Package::UseAsExternal property
for the top-most package to Checked.
- Create the appropriate files (for more information,
see Creating files).
Continuing the example, you would simply create the file C.
- Create an element to be referenced in the
file.
- Add the rest of the path to the Include
Path field of the component. In the example, this would
be C:\MyProjects\Project1.
- Set the C_CG::Package::GenerateDirectory property
to Checked for the component.