Integrations (PTC products, 3rd party products and code) > Code integration (Ada, ARINC 653, C, C#, C++, IDL, Java, SQL and VB) > C Code > Generating C Code > Overview of generating C code (C code) > Overview of modeling C code (C code) > Setting up libraries that are represented in the model for generating C code (C code)
  
Setting up libraries that are represented in the model for generating C code (C code)
If you have libraries represented in the model, for each library class you can specify the #include statement to be generated for any structs that use that library class. You can specify the #include statement for a Package and then propagate that #include statement to all its sub-Packages and Classes.
1. If you have not done so already, add the C Profile package to your Model. See Applying a stereotype to a model item.
2. Apply the «C Library» stereotype to the Package that owns the library classes.
For information about applying Stereotypes to an item, see Applying a stereotype to a model item.
3. Open the Package's Property Pages, and then click the C Library tab.
4. Set the tagged value of the C LIB_INCLUDE tag definition to the #include statement that you want to generate for a struct that uses the library, including the '#include' text.
For information about setting the tagged value of a Tag Definition, see Setting a tagged value for an applied tag definition.
5. Right-click the Package, and then click Propagate Library Properties.
The «C Library» stereotype and the tagged value of the C LIB_INCLUDE tag definition is applied to the Package's child Packages, Classes, Data Types and Interfaces.
* 
You can use the Propagate Library Properties command to update the tagged values of C LIB_UPDATE tag definitions.