Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Linker Tools Warning LNK4001"
title: "Linker Tools Warning LNK4001"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Warning LNK4001"
ms.date: 11/04/2016
f1_keywords: ["LNK4001"]
helpviewer_keywords: ["LNK4001"]
ms.assetid: 0a8b1c3a-64ce-4311-b7c0-065995059246
---
# Linker Tools Warning LNK4001

no object files specified; libraries used
> no object files specified; libraries used

## Remarks

The linker was passed one or more .lib files, but no .obj files.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
description: "Learn more about: Linker Tools Warning LNK4002"
title: "Linker Tools Warning LNK4002"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Warning LNK4002"
ms.date: 11/04/2016
f1_keywords: ["LNK4002"]
helpviewer_keywords: ["LNK4002"]
ms.assetid: 09f81af5-e51c-496c-a6eb-2863e85375c3
---
# Linker Tools Warning LNK4002

symbol defined in object
> symbol defined in object

## Remarks

The symbol, displayed in its decorated form, was specified in its undecorated form in `object`, but a unique match to a decorated symbol could not be found. This warning is always preceded by warning [LNK4022](../../error-messages/tool-errors/linker-tools-warning-lnk4022.md) and followed by fatal error [LNK1152](../../error-messages/tool-errors/linker-tools-error-lnk1152.md).
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Linker Tools Warning LNK4006"
title: "Linker Tools Warning LNK4006"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Warning LNK4006"
ms.date: 11/04/2016
f1_keywords: ["LNK4006"]
helpviewer_keywords: ["LNK4006"]
ms.assetid: 3a637d17-1676-4ea6-bd8b-290137d28d3b
---
# Linker Tools Warning LNK4006

symbol already defined in object; second definition ignored
> symbol already defined in object; second definition ignored

## Remarks

The given `symbol`, displayed in its decorated form, was multiply defined. When this warning is encountered, `symbol` will be added twice, but only its first form will be used.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
description: "Learn more about: Linker Tools Warning LNK4010"
title: "Linker Tools Warning LNK4010"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Warning LNK4010"
ms.date: 11/04/2016
f1_keywords: ["LNK4010"]
helpviewer_keywords: ["LNK4010"]
ms.assetid: 2824cf99-4174-4b60-a6e2-c01e9f1ee52d
---
# Linker Tools Warning LNK4010

invalid subsystem version number number; default subsystem version assumed
> invalid subsystem version number number; default subsystem version assumed

## Remarks

You can specify a version for the image's subsystem ([/SUBSYSTEM](../../build/reference/subsystem-specify-subsystem.md)). Each subsystem has a minimum version requirement. If the specified version is lower than the minimum, this warning will occur and the linker will just use the default subsystem.
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Linker Tools Warning LNK4014"
title: "Linker Tools Warning LNK4014"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Warning LNK4014"
ms.date: 11/04/2016
f1_keywords: ["LNK4014"]
helpviewer_keywords: ["LNK4014"]
ms.assetid: 394903e9-3ded-4ea4-b7c0-a3535d4b4da4
---
# Linker Tools Warning LNK4014

cannot find member object "objectname"
> cannot find member object "objectname"

## Remarks

LIB could not find `objectname` in the library.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
---
description: "Learn more about: Linker Tools Warning LNK4020"
title: "Linker Tools Warning LNK4020"
ms.date: "05/29/2018"
description: "Learn more about: Linker Tools Warning LNK4020"
ms.date: 05/29/2018
f1_keywords: ["LNK4020"]
helpviewer_keywords: ["LNK4020"]
---
# Linker Tools Warning LNK4020

> a type record in '*filename*' is corrupted; some symbols and types may not be accessible from the debugger

## Remarks

The PDB file *filename* has a corrupted type record.

This issue is often secondary to other build issues; unless this is the first reported build issue, deal with the other errors and warnings first. If this is the first reported issue, you may need to clean your build directories and rebuild your project. If you use parallel build processes, see if the error persists when you serialize your build.
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Linker Tools Warning LNK4022"
title: "Linker Tools Warning LNK4022"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Warning LNK4022"
ms.date: 11/04/2016
f1_keywords: ["LNK4022"]
helpviewer_keywords: ["LNK4022"]
ms.assetid: 890f487e-db98-45dd-a226-c7ccead82b1e
---
# Linker Tools Warning LNK4022

cannot find unique match for symbol 'symbol'
> cannot find unique match for symbol 'symbol'

## Remarks

LINK or LIB found multiple matches for the given undecorated symbol and it could not resolve the ambiguity. No output file (.exe, .dll, .exp, or .lib) is produced. This warning is followed by one warning [LNK4002](../../error-messages/tool-errors/linker-tools-warning-lnk4002.md) for each duplicate symbol and is finally followed by fatal error [LNK1152](../../error-messages/tool-errors/linker-tools-error-lnk1152.md).

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Linker Tools Warning LNK4037"
title: "Linker Tools Warning LNK4037"
ms.date: "10/04/2017"
description: "Learn more about: Linker Tools Warning LNK4037"
ms.date: 10/04/2017
f1_keywords: ["LNK4037"]
helpviewer_keywords: ["LNK4037"]
ms.assetid: 9ba02fd3-b04f-4679-bab9-26fa82cf09bb
---
# Linker Tools Warning LNK4037

>'*symbol*' does not exist; ignored
> '*symbol*' does not exist; ignored

## Remarks

The decorated name *symbol* could not be ordered by using the [/ORDER](../../build/reference/order-put-functions-in-order.md) option because it could not be found in the program. Check the specification of *symbol* in the order response file. For more information, see the [/ORDER (Put functions in order)](../../build/reference/order-put-functions-in-order.md) linker option.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Linker Tools Warning LNK4039"
title: "Linker Tools Warning LNK4039"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Warning LNK4039"
ms.date: 11/04/2016
f1_keywords: ["LNK4039"]
helpviewer_keywords: ["LNK4039"]
ms.assetid: ed7b1783-a7b2-4d3e-8afb-ca1648dae2c2
---
# Linker Tools Warning LNK4039

section 'name' specified with /SECTION option does not exist
> section 'name' specified with /SECTION option does not exist

## Remarks

[DUMPBIN](../../build/reference/dumpbin-reference.md) or [EDITBIN](../../build/reference/editbin-reference.md) could not find a section called `name` in the input file.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Linker Tools Warning LNK4044"
title: "Linker Tools Warning LNK4044"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Warning LNK4044"
ms.date: 11/04/2016
f1_keywords: ["LNK4044"]
helpviewer_keywords: ["LNK4044"]
ms.assetid: f3a67a15-98c0-42ed-afcb-f5f9540e2671
---
# Linker Tools Warning LNK4044

unrecognized option 'option'; ignored
> unrecognized option 'option'; ignored

## Remarks

The given option is not a valid option for this tool. The tool ignored the option.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
---
description: "Learn more about: Linker Tools Warning LNK4049"
title: "Linker Tools Warning LNK4049"
ms.date: "04/15/2019"
description: "Learn more about: Linker Tools Warning LNK4049"
ms.date: 04/15/2019
f1_keywords: ["LNK4049"]
helpviewer_keywords: ["LNK4049"]
ms.assetid: 5fd5fb24-c860-4149-a557-0ac26a65d97c
---
# Linker Tools Warning LNK4049

> symbol '*symbol*' defined in '*filename.obj*' is imported

[__declspec(dllimport)](../../cpp/dllexport-dllimport.md) was specified for *symbol* even though the symbol is defined in object file *filename.obj* in the same image. Remove the `__declspec(dllimport)` modifier to resolve this warning.

## Remarks

[__declspec(dllimport)](../../cpp/dllexport-dllimport.md) was specified for *symbol* even though the symbol is defined in object file *filename.obj* in the same image. Remove the `__declspec(dllimport)` modifier to resolve this warning.

This warning is generated by the linker when you define a symbol in one object file and reference it by using the `__declspec(dllimport)` declaration modifier in another.

Warning LNK4049 is a more general version of [Linker Tools Warning LNK4217](linker-tools-warning-lnk4217.md). The linker generates warning LNK4049 when it can't determine which function or object file referenced the imported symbol.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
description: "Learn more about: Linker Tools Warning LNK4065"
title: "Linker Tools Warning LNK4065"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Warning LNK4065"
ms.date: 11/04/2016
f1_keywords: ["LNK4065"]
helpviewer_keywords: ["LNK4065"]
ms.assetid: aa5c9e2c-9ad3-4460-8605-4c12bbc6d423
---
# Linker Tools Warning LNK4065

'function' cannot be ordered; ignored
> 'function' cannot be ordered; ignored

## Remarks

The given function was not compiled as a packaged function. Recompile using [/Gy](../../build/reference/gy-enable-function-level-linking.md).
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Linker Tools Warning LNK4070"
title: "Linker Tools Warning LNK4070"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Warning LNK4070"
ms.date: 11/04/2016
f1_keywords: ["LNK4070"]
helpviewer_keywords: ["LNK4070"]
ms.assetid: f95f179a-fff9-427e-bd51-466b3934517f
---
# Linker Tools Warning LNK4070

/OUT:filename directive in .EXP differs from output filename 'filename'; ignoring directive
> /OUT:filename directive in .EXP differs from output filename 'filename'; ignoring directive

## Remarks

The `filename` specified in the [NAME](../../build/reference/name-c-cpp.md) or [LIBRARY](../../build/reference/library.md) statement when the .exp file was created differs from the output `filename` that was either assumed by default or specified with the [/OUT](../../build/reference/out-output-file-name.md) option.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
description: "Learn more about: Linker Tools Warning LNK4071"
title: "Linker Tools Warning LNK4071"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Warning LNK4071"
ms.date: 11/04/2016
f1_keywords: ["LNK4071"]
helpviewer_keywords: ["LNK4071"]
ms.assetid: 803f8c34-8219-4f55-a4ae-7133ceff2ba3
---
# Linker Tools Warning LNK4071

cannot be incrementally linked on subsequent links
> cannot be incrementally linked on subsequent links

## Remarks

LINK found multiple definitions for one or more symbols, but [/FORCE](../../build/reference/force-force-file-output.md) or **/FORCE:MULTIPLE** was used to create an output file regardless of errors. LINK deleted the incremental status (.ilk) file.
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
description: "Learn more about: Linker Tools Warning LNK4073"
title: "Linker Tools Warning LNK4073"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Warning LNK4073"
ms.date: 11/04/2016
f1_keywords: ["LNK4073"]
helpviewer_keywords: ["LNK4073"]
ms.assetid: a0c80242-3395-45bd-bbe7-4f31d7ac9e3a
---
# Linker Tools Warning LNK4073

cannot create map for .ilk file; linking nonincrementally
> cannot create map for .ilk file; linking nonincrementally

## Remarks

There was not a large enough contiguous space in shared memory for LINK to create the incremental status (.ilk) file. LINK performed a nonincremental build.
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Linker Tools Warning LNK4075"
title: "Linker Tools Warning LNK4075"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Warning LNK4075"
ms.date: 11/04/2016
f1_keywords: ["LNK4075"]
helpviewer_keywords: ["LNK4075"]
ms.assetid: f39ad3f9-c263-4cf0-9d70-259fc56ac96d
---
# Linker Tools Warning LNK4075

ignoring "option1" due to "option2" specification
> ignoring "option1" due to "option2" specification

## Remarks

The second option overrides the first.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
description: "Learn more about: Linker Tools Warning LNK4076"
title: "Linker Tools Warning LNK4076"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Warning LNK4076"
ms.date: 11/04/2016
f1_keywords: ["LNK4076"]
helpviewer_keywords: ["LNK4076"]
ms.assetid: c424d43b-abb3-4df4-be66-8907b859a555
---
# Linker Tools Warning LNK4076

invalid incremental status file 'filename'; linking nonincrementally
> invalid incremental status file 'filename'; linking nonincrementally

## Remarks

LINK cannot write to the incremental status (.ilk) file. Either `filename` is corrupt or it is not an incremental linking database. Remove the file and relink.
11 changes: 6 additions & 5 deletions docs/error-messages/tool-errors/linker-tools-warning-lnk4078.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Linker Tools Warning LNK4078"
title: "Linker Tools Warning LNK4078"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Warning LNK4078"
ms.date: 11/04/2016
f1_keywords: ["LNK4078"]
helpviewer_keywords: ["LNK4078"]
ms.assetid: 5a16796d-6caf-42d9-8f65-b042843eafb8
---
# Linker Tools Warning LNK4078

multiple 'section name' sections found with different attributes
> multiple 'section name' sections found with different attributes

## Remarks

LINK found two or more sections that have the same name but different attributes.

Expand All @@ -20,7 +21,7 @@ Recreate the file and relink.

LNK4078 can also be caused by a breaking change: the section named by [init_seg](../../preprocessor/init-seg.md) on x86 was read/write, it is now read only.

The following sample generates LNK4078.
The following example generates LNK4078.

```cpp
// LNK4078.cpp
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
description: "Learn more about: Linker Tools Warning LNK4086"
title: "Linker Tools Warning LNK4086"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Warning LNK4086"
ms.date: 11/04/2016
f1_keywords: ["LNK4086"]
helpviewer_keywords: ["LNK4086"]
ms.assetid: ea1eecbb-ba2c-41bb-9a4f-fa0808a4b92d
---
# Linker Tools Warning LNK4086

entrypoint 'function' is not __stdcall with 'number' bytes of arguments; image may not run
> entrypoint 'function' is not __stdcall with 'number' bytes of arguments; image may not run

## Remarks

The entry point for a DLL must be **`__stdcall`**. Either recompile the function with the [/Gz](../../build/reference/gd-gr-gv-gz-calling-convention.md) option or specify **`__stdcall`** or WINAPI when you define the function.
Loading