共用方式為


Set Linker Options

OverviewDetails

Options can be set inside our outside of the development environment. (See Linker Reference for a complete list.)

To set linker options in the development environment

  1. Click the Settings command on the Project menu.

  2. On the Project Settings dialog box, click the Link tab, which shows the available options.

    To pass an object file or standard library (either static or import) to the linker, specify the file name in the Object/Library Modules text box. You can specify an absolute or relative path with the file name, and you can use wildcards in the file name. If you omit the dot (.) and file name extension, the linker assumes .OBJ for the purpose of finding the file. The linker does not use file name extensions or the lack of them to make assumptions about the contents of files; it determines the type of file by examining it and processes it accordingly. For additional information, see LINK Input Files.

Setting linker options outside the development environment

When you run LINK outside the development environment, you can specify input in one or more ways:

LINK first processes options specified in the LINK environment variable, followed by options in the order they are specified on the command line and in command files. If an option is repeated with different arguments, the last one processed takes precedence.

Options apply to the entire build; no options can be applied to specific input files.