Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space CPPTDESKDEV and version 10.3.3

...

  1. (Optional) If you want to specify the location of the custom compiler definition files, choose Parasoft> Preferences, select Parasoft> Configurations, then enable Custom directories> Custom compilers  and enter the location in the appropriate field .
    • By default, the custom compiler definition files are saved in 

      <user_local_settings_dir>\<app_data_dir>\Xtest\.plugins.vs\com.parasoft.xtest.check-ers.vstudio.core.cpp\compilers.
  2. Choose Parasoft> Wizards> Create Custom Compiler.

    The New Custom Compiler dialog will open.

  3. Select Add custom compiler, then click Next.

  4. In the next page, specify the following custom compiler settings:

    • Compiler name: The unique name that will be used to identify this custom compiler in the C++test GUI.

    • Compiler family: The family of compilers which corresponds to your actual compiler (if you are not sure, choose one of the GCC compilers).

    • Compiler identifier: The unique name that will be used to identify the directory in which its configuration settings are stored. This name should conform to all limitations that your OS file system imposes on directory names.

    • C compiler executable: The C compiler executable.

    • C++ compiler executable: The C++ compiler executable.

    • Linker executable: The linker executable. The compiler and linker settings must be consistent.

  5. (Optional) If you want to see the paths to configuration files created for your new custom compiler, click Next.

  6. Click Finish.

...

Any custom compiler definitions that are available in the designated Custom Compilers location will be loaded automatically upon startup, and available for use. Thus, one way to "import" definitions is to save them in the Custom Compiler location. By default, the custom compiler definition files are saved in<userin

...

To change this location, choose Parasoft> Preferences, select Parasoft> Configurations, then enable Custom directories> Custom compilers  and enter the location in the appropriate field .

To import a custom compiler definition that is stored in another location:

  1. Choose Parasoft> Wizards> Create Custom Compiler.

    The New Custom Compiler dialog will open.

  2. Select Import custom compiler, then click Next.
  3. In the Base compiler definition directory field, specify the directory which contains the compiler definition files (described in the previous section) that you want to import.
    • Ensure that the name of the imported compiler directory does not overlap with the name of any existing configurations.
  4. Click Finish.

...

  1. Load (or create) the C++test project in the GUI.
  2. In the project tree, right-click the project node, then choose 

    Parasoft>

    Properties from the shortcut menu.

  3. In the Properties panel, expand the Parasoft> C++test category and select Build Settings.
  4. From the Compiler settings> Family box, select the name of your custom compiler.
  5. Add the library that you built with the custom compiler to the linker options by changing the Linker options. For example, you might change it from
    ${cpptest:original_options}
    to
    ${cpptest:original_options} "C:\cygwin\home\<user_name>\Custom_Compiler\source\target\libcpptestruntime.a"
  6. Click Apply, then OK.
Tip

Tips

  • The compiler family setting should correspond to the name of the actual compiler.
  • The compiler and linker settings should be set for your environment, and should be consistent.
  • For Managed Make projects, compiler and linker settings are specified in the managed project settings.
  • SeeSetting Project and File Options for details on reviewing and setting project options.