/IGNORE (Ignore Specific Warnings)
/IGNORE:warning[,warning]
Parameters
- warning
The number of the linker warning to suppress, in the range 4000 to 4999.
Remarks
By default, LINK reports all warnings. Specify **/IGNORE:**warning to tell the linker to suppress a specific warning number. To ignore multiple warnings, separate the warning numbers with commas.
The linker does not allow some warnings to be ignored. This table lists the warnings that are not suppressed by /IGNORE:
Linker Warning |
|
---|---|
LNK4017 |
keyword statement not supported for the target platform; ignored |
unrecognized option 'option'; ignored |
|
LNK4062 |
'option' not compatible with 'architecture' target machine; option ignored |
ignoring "option1" due to "option2" specification |
|
entrypoint 'function' is not __stdcall with 'number' bytes of arguments; image may not run |
|
LNK4088 |
image being generated due to /FORCE option; image may not run |
no argument specified with option 'option'; ignoring switch |
|
LNK4203 |
error reading program database 'filename'; linking object as if no debug info |
'filename' is missing debugging information for referencing module; linking object as if no debug info |
|
'filename' is missing current debugging information for referencing module; linking object as if no debug info |
|
precompiled type information not found; 'filename' not linked or overwritten; linking object as if no debug info |
|
LNK4207 |
'filename' compiled /Yc /Yu /Z7; cannot create PDB; recompile with /Zi; linking object as if no debug info |
LNK4208 |
incompatible PDB format in 'filename'; delete and rebuild; linking object as if no debug info |
LNK4209 |
debugging information corrupt; recompile module; linking object as if no debug info |
option is no longer supported; ignored |
|
LNK4228 |
'option' invalid for a DLL; ignored |
invalid directive /directive found; ignored |
In general, linker warnings that can't be ignored represent build failures, command line errors or configuration errors that you should fix.
To set this linker option in the Visual Studio development environment
Open the project's Property Pages dialog box. For details, see Working with Project Properties.
In the Linker folder, select the Command Line property page.
Modify the Additional Options property.
To set this linker option programmatically
- See AdditionalOptions.