/FIXED (Fixed Base Address)


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at -FIXED (Fixed Base Address).


## Remarks  
 Tells the operating system to load the program only at its preferred base address. If the preferred base address is unavailable, the operating system does not load the file. For more information, see [/BASE (Base Address)](../Topic/-BASE%20\(Base%20Address\).md).  
 /FIXED:NO is the default setting for a DLL, and /FIXED is the default setting 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 the specified address, it issues an error message and does not load the program.  
 Specify /FIXED:NO to generate a relocation section in the program.  
### To set this linker option in the Visual Studio development environment  
1.  Open the project's **Property Pages** dialog box. For details, see [Working with Project Properties](../Topic/Working%20with%20Project%20Properties.md).  
2.  Select the **Linker** folder.  
3.  Select the **Command Line** property page.  
4.  Type the option name and setting in the **Additional Options** box.  
### To set this linker option programmatically  
-   See [AdditionalOptions](assetId:///P:Microsoft.VisualStudio.VCProjectEngine.VCLinkerTool.AdditionalOptions?qualifyHint=False&autoUpgrade=True).  
## See Also  
 [Setting Linker Options](../Topic/Setting%20Linker%20Options.md)   
 [Linker Options](../Topic/Linker%20Options.md)