Additional Build Customization
In this example, the UMTS base station consists of a mix of C and C++ source files. Some C++ compilers can handle both the C and C++ languages; other compilers are not able to do this.
Recall that you selected the TDP for the C++ compiler on your machine. On Windows, the Visual C++ 6.0 TDP can process both C and C++ files. For the GNU compiler on Windows, and for the native compilers on Linux, you need to specify a C language TDP for the .c source files:
If you're using the GNU compiler on Windows, or the native compilers on Linux:
To set a C language TDP for .c files:
- In the Project Browser, right-click the tcpsck.c child node of the BaseStation application node and select Settings.
- Position the Configuration Settings window that has opened so that you can easily see the Project Browser.
- Expand the Build node in the tree on the left-hand side of the window and left-click the Build Options child node.
- Click the dropdown list for the Target Deployment Port setting. It's current value is the TDP selected when you created the project.
- Expand the dropdown list - either by left-clicking the field one more time or by selecting the dropdown list arrow to the right - and select the corresponding C language TDP for your machine. Click Apply once the new TDP is selected.
- Back in the Project Browser, select the node for the file UmtsCode.c and then follow steps 4 and 5 above.
- Select the node for the file UmtsMsg.c in the Project Browser and then follow steps 4 and 5 above.
- In the Configuration Settings window, click OK.Note: Only the settings for these specific file nodes have been changed; all other file nodes continue to use the default TDP settings.