Creating and Editing a Project-Specific Compiler Configuration
- Updated2023-02-21
- 2 minute(s) read
Creating and Editing a Project-Specific Compiler Configuration
You can use an external compiler to compile projects you develop in LabWindows/CVI. Use the Release Configuration dialog box to specify the configuration compiler settings for a specific project. To open the Release Configuration dialog box, click Release Configuration in the Edit Project dialog box. In the Release Configuration dialog box, you can specify to use the environment-wide settings, use the LabWindows/CVI compiler, or use settings that are specific to the project.
When you enable the Use Custom Settings option, click the … button next to the option to launch a project-specific Compiler Setup dialog box. 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. 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.
Transferring a Project-Specific Compiler Configuration to Other Projects
You can create a new project that uses the same compiler configuration as the current project. In the New Project Options dialog box, enable the Build Options option to transfer the compiler configuration and other build options to the new project.
You also can create an environment-wide compiler configuration from the current project-specific configuration. In the New Configuration dialog box, select Custom Settings from Active Project from the Template Configuration list.