# Specifying Alternate Tools and Paths

This content is specific to C++; it does not apply to DPC++.

Use the Qlocation option to specify an alternate path for a tool. This option accepts two arguments using the following syntax:

Qlocation Syntax
    # (Linux* and macOS*)
    -Qlocation,tool,path
    # (Windows*)
    /Qlocation,tool,path

where tool designates which compilation tool is associated with the alternate path.

tool | Description
--- | ---
cpp | Specifies the preprocessor for the compiler.
c | Specifies the Intel® C++ Compiler Classic .
asm | Specifies the assembler.
link | Specifies the linker.

Use the Qoption option to pass an option specified by optlist to a tool, where optlist is a comma-separated list of options. The syntax for this command is:

Qoption Syntax
    # (Linux* and macOS*)
    -Qoption,tool,optlist
    # (Windows*)
    /Qoption,tool,optlist

where tool designates which compilation tool receives the optlist.

tool | Description
--- | ---
cpp | Specifies the preprocessor for the compiler.
c | Specifies the Intel® C++ Compiler Classic .
asm | Specifies the assembler.
link | Specifies the linker.

optlist indicates one or more valid argument strings for the designated program. If the argument is a command-line option, you must include the hyphen. If the argument contains a space or tab character, the entire argument must be enclosed in quotation characters (""). Separate multiple arguments with commas.

Parent topic: Compilation