Admin Production ni-theme
Current Publication

Creating and Editing an Environment-Wide Compiler Configuration

LabWindows/CVI

Creating and Editing an Environment-Wide Compiler Configuration

You can use an external compiler to compile projects you develop in LabWindows/CVI. To specify the environment-wide release configuration compiler, select a compiler from the Active 32-bit compiler or Active 64-bit compiler options in the Build Options dialog box. Click the button next to either option to open the Compiler for Release Configuration dialog box, from which you can add to, remove from, or edit the list of available compiler configurations.

Click New in the Compiler for Release Configuration dialog box to open the New Configuration dialog box. Use the New Configuration dialog box to specify a name for the new configuration and the .ecc file in which to store the configuration settings. You have the option to use a template (.ect) file LabWindows/CVI provides to create the new configuration.

Click Edit in the Compiler for Release Configuration dialog box to open the Compiler Setup dialog box for the selected configuration. You can use the Compiler Setup dialog box to specify the file that stores the configuration settings for the configuration, the name of the configuration, whether you want the external compiler to optimize speed or size, how aggressively you want the compiler to return warnings, and any additional flags you want to pass to the external compiler.

Click Advanced in the Compiler Setup dialog box to open the Advanced Compiler Options dialog box. Use this dialog box to specify the executable and environment setup batch file for the external compiler, if there is a setup batch file. You also can specify additional flags that ensure the external compiler properly compiles the code you write in the LabWindows/CVI environment. Consider the various factors that affect which flags to use. Use the controls in the Command-Line Templates section of the dialog box to specify how to send information to the external compiler about the source code you are compiling, such as the source file name and macro information.

Use caution when you modify the advanced compiler options. Deleting a necessary flag or altering an existing template can cause compile errors.