Linker Warnings LNK4040 to LNK4069

Linker Tools Warning LNK4040
corrupt string table (size); string table ignored
The string table in the object file is corrupt. The program may not run as expected. Rebuild the object file. See Corrupt Object File for more information.

Linker Tools Warning LNK4041
no edit options specified
EDITBIN was run on the input file, but no options were used. If the file format was not COFF, EDITBIN attempted to convert it. Otherwise, EDITBIN took no action on the file.

Linker Tools Warning LNK4042
object specified more than once; extras ignored
The same object file was specified more than once in the LINK or LIB command. The result is the same as if the file were specified only the first time.

Linker Tools Warning LNK4043
invalid /ALIGN value number (must be power of 2); assumed default
The argument specified with the /ALIGN option was not a power of 2.

Linker Tools Warning LNK4044
unrecognized option "option"; ignored
The given option is not a valid option for this tool. The tool ignored the option. To see a list of valid options, run the tool with no arguments or options.

Linker Tools Warning LNK4045
creating LINK_REPRO test case in dir "directory"
The LINK_REPRO environment variable, when set, specifies a directory where the linker will copy object files, libraries, and other files. Microsoft can use these files to recreate internal linker errors. The linker will only copy files if LINK_REPRO is set. If this is not what you want to do, remove the LINK_REPRO environment variable by typing the following: set LINK_REPRO=

Linker Tools Warning LNK4046
LINK_REPRO is set to current directory; ignored
The LINK_REPRO environment variable should not be set to the current directory. Create a new directory, set LINK_REPRO to the new directory, and rerun the linker.

Linker Tools Warning LNK4047
cannot edit library file "filename"; ignored
EDITBIN cannot process a library file.

Linker Tools Warning LNK4048
Invalid format file; ignored
EDITBIN could not process the file because it was not a valid object file, executable file, or dynamic-link library (DLL).

Linker Tools Warning LNK4049
exported symbol "symbol" also imported
The symbol was both exported from and imported to the program. This warning is displayed when the LINK warning level (set by the /WARN option) is greater than 1.

Linker Tools Warning LNK4051
extra delimiter in /EXPORT specification
The specification of the /EXPORT option ended with a comma (,).

Linker Tools Warning LNK4052
using .EXP file; ignoring .DEF file "filename"
The .DEF file specified in the LINK command was ignored because an .EXP file was also specified. The .DEF file was already processed when the .EXP file was created and is not necessary in this step of the build process.

Linker Tools Warning LNK4055
invalid fixup found, address address; fixup ignored
The object contained an invalid fixup. The resulting executable file will probably not run correctly. Rebuild the object file. See Corrupt Object File for more information.

Linker Tools Warning LNK4056
extra arguments ignored for option "option"
The option was specified with too many arguments. The additional arguments were ignored.

Linker Tools Warning LNK4057
"library1" should precede "library2" in the link command line
Check the order of your libraries. The developer of library1 determined that it should be searched by the linker before library2. For example, library1 might contain an updated version of a function in library2. If you specify library2 first, the linker will link in the old version rather than the newer version from library1.

Linker Tools Warning LNK4059
resourcefile already specified; additional resource file ignored
Only one resource file is allowed. The first .RES file specified in the command was used.

Linker Tools Warning LNK4060
stub file missing full MS-DOS header; rebuild stub with /KNOWEAS 16-bit LINK option
The MS-DOS application specified with the /STUB option does not have a full 40-byte header. The stub program may not run as expected. To rebuild the 16-bit stub with a full 40-byte header, use the undocumented /KNOWEAS option with the 16-bit LINK version 5.5x or higher.

Linker Tools Warning LNK4061
/NOSTUB ignored because no DOS stub is present
EDITBIN could not remove the stub file because it could not find one in your executable file.

Linker Tools Warning LNK4062
"option" not compatible with "platform" target machine; option ignored
The given option is not supported for the target platform of this build. LINK ignored the option and continued the build.

Linker Tools Warning LNK4064
conflicting subsystem; image may not run
You tried to link in a library whose subsystem differs from your executable's subsystem value, and your executable file may not run. For more information on subsystems, see the /SUBSYSTEM linker option. Note: You will not receive this warning if one subsystem is CONSOLE and the the other's subsystem is WINDOWS.

Linker Tools Warning LNK4065
"function" cannot be ordered; ignored
The given function was not compiled as a packaged function. Recompile using /Gy.

Linker Tools Warning LNK4066
DLL contains .sdata section
One or more objects was compiled using /Gt. Objects compiled with /Gt cannot be used to create a DLL.

Linker Tools Warning LNK4067
ambiguous entry point; selected "entry"
LINK found multiple entry points for the program. It assumed the given entry.

Linker Tools Warning LNK4068
/MACHINE not specified; defaulting to machinetype
LINK did not find a machine specification. It assumed the given machine type. If the default is incorrect, resulting in fatal error LNK1112, relink using the /MACHINE option.

Linker Tools Warning LNK4069
cannot create map and/or checksum image; checksum set to 0
This warning can occur if IMAGEHLP.DLL is not available.


Return to Main Linker Error Page