Udostępnij za pośrednictwem


/FIXED (Fixed Base Address)

/FIXED[:NO]

Remarks

The /FIXED option tells the operating system to load the program only at its preferred base address. If the preferred base address is unavailable, the operating system will not load the file. For more information, see /BASE (Base Address).

By default, /FIXED:NO is the default when building a DLL, and /FIXED is the default for any other project type.

When /FIXED is specified, LINK does not generate a relocation section in the program. At run time, if the operating system is unable to load the program at that address, it issues an error message and does not load the program.

Specify /FIXED:NO to generate a relocation section in the program.

Do not use /FIXED when building device drivers for Windows NT.

To set this linker option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Setting Visual C++ Project Properties.

  2. Click the Linker folder.

  3. Click the Command Line property page.

  4. Type the option into the Additional Options box.

To set this linker option programmatically

See Also

Reference

Setting Linker Options

Linker Options