Skip to content
Open
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
7 changes: 4 additions & 3 deletions docs/error-messages/tool-errors/linker-tools-error-lnk1000.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
---
description: "Learn more about: Linker Tools Error LNK1000"
title: "Linker Tools Error LNK1000"
ms.date: "06/18/2018"
description: "Learn more about: Linker Tools Error LNK1000"
ms.date: 06/18/2018
f1_keywords: ["LNK1000"]
helpviewer_keywords: ["LNK1000"]
ms.assetid: 86421b9a-460a-4285-8dce-9b8257d78122
---
# Linker Tools Error LNK1000

> unknown error; consult documentation for technical support options

## Remarks

Note the circumstances of the error, then try to isolate the problem and create a reproducible test case. For information on how to investigate and report these errors, see [How to report a problem with the Visual C++ toolset or documentation](../../overview/how-to-report-a-problem-with-the-visual-cpp-toolset.md).

You may get this error if you mix standard header files (for example, Windows.h) and your own files. Include a precompiled header, if any, first, then the standard headers, followed by your own header files.
9 changes: 5 additions & 4 deletions docs/error-messages/tool-errors/linker-tools-error-lnk1103.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Linker Tools Error LNK1103"
title: "Linker Tools Error LNK1103"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Error LNK1103"
ms.date: 11/04/2016
f1_keywords: ["LNK1103"]
helpviewer_keywords: ["LNK1103"]
ms.assetid: c8e9bc54-6a71-471c-899e-6f98122ee3c4
---
# Linker Tools Error LNK1103

debugging information corrupt; recompile module
> debugging information corrupt; recompile module

## Remarks

This error can be caused because the compilation was terminated before a valid object file was created.

Expand Down
5 changes: 3 additions & 2 deletions docs/error-messages/tool-errors/linker-tools-error-lnk1104.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
---
title: "Linker Tools Error LNK1104"
description: "Describes the Microsoft C and C++ (MSVC) linker error LNK1104, its causes, and possible solutions."
ms.date: "12/13/2019"
ms.date: 12/13/2019
f1_keywords: ["LNK1104"]
helpviewer_keywords: ["LNK1104"]
ms.assetid: 9ca6f929-0efc-4055-8354-3cf5b4e636dc
---
# Linker Tools Error LNK1104

> cannot open file '*filename*'

## Remarks

This error is reported when the linker fails to open a file, either for reading or for writing. The two most common causes of the issue are:

- your program is already running or is loaded in the debugger, and
Expand Down
9 changes: 5 additions & 4 deletions docs/error-messages/tool-errors/linker-tools-error-lnk1106.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Linker Tools Error LNK1106"
title: "Linker Tools Error LNK1106"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Error LNK1106"
ms.date: 11/04/2016
f1_keywords: ["LNK1106"]
helpviewer_keywords: ["LNK1106"]
ms.assetid: 528f7e65-04be-4966-b8af-9276837c7cda
---
# Linker Tools Error LNK1106

invalid file or disk full: cannot seek to location
> invalid file or disk full: cannot seek to location

## Remarks

The tool could not read or write to `location` in a memory-mapped file.

Expand Down
6 changes: 3 additions & 3 deletions docs/error-messages/tool-errors/linker-tools-error-lnk1107.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: "Learn more about: Linker tools error LNK1107"
title: "Linker tools error LNK1107"
description: "Learn more about: Linker tools error LNK1107"
ms.date: 12/10/2021
f1_keywords: ["LNK1107"]
helpviewer_keywords: ["LNK1107"]
Expand All @@ -9,10 +9,10 @@ helpviewer_keywords: ["LNK1107"]

> invalid or corrupt file: cannot read at location *address*

The tool couldn't read the file. The file may be corrupt, or have an unexpected file type.

## Remarks

The tool couldn't read the file. The file may be corrupt, or have an unexpected file type.

LNK1107 can occur if a file passed to the linker or related tools is corrupt. To resolve this issue, rebuild the file.

LNK1107 can also occur if your build process puts an unexpected file type in the list of files passed to the tool. The linker and related tools expect to work on specific file types. For example, the linker can use object files, library files, compiled resources, and manifests to create an executable. It can't create an executable by using source files or DLLs. To resolve this issue, verify that your build process passes only the expected file types to the tool. For example, pass *`.obj`*, *`.lib`*, and *`.res`* files, not *`.cpp`*, *`.h`*, *`.dll`*, or *`.rc`* files.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
---
description: "Learn more about: Linker Tools Error LNK1112"
title: "Linker Tools Error LNK1112"
description: "Learn more about: Linker Tools Error LNK1112"
ms.date: 05/23/2022
f1_keywords: ["LNK1112"]
helpviewer_keywords: ["LNK1112"]
ms.assetid: 425793d8-37e6-4072-9b6e-c3d4e9c12562
---
# Linker Tools Error LNK1112

Expand Down
9 changes: 5 additions & 4 deletions docs/error-messages/tool-errors/linker-tools-error-lnk1113.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Linker Tools Error LNK1113"
title: "Linker Tools Error LNK1113"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Error LNK1113"
ms.date: 11/04/2016
f1_keywords: ["LNK1113"]
helpviewer_keywords: ["LNK1113"]
ms.assetid: 269ff166-b143-48e9-bdf7-db6a0db59fe4
---
# Linker Tools Error LNK1113

invalid machine type type
> invalid machine type type

## Remarks

The machine type specified in the object header is not valid.

Expand Down
5 changes: 3 additions & 2 deletions docs/error-messages/tool-errors/linker-tools-error-lnk1120.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
---
title: "Linker tools error LNK1120"
description: "Describes the LNK1120 linker error, which reports the number of unresolved external symbol errors in the link."
ms.date: "10/31/2019"
ms.date: 10/31/2019
f1_keywords: ["LNK1120"]
helpviewer_keywords: ["LNK1120"]
ms.assetid: 56aa7d36-921f-4daf-b44d-cca0d4fb1b51
---
# Linker tools error LNK1120

> *number* unresolved externals

## Remarks

Error LNK1120 reports the number of [unresolved external symbol](linker-tools-error-lnk2001.md#what-is-an-unresolved-external-symbol) errors in the current link.

Each unresolved external symbol first gets reported by a [LNK2001](linker-tools-error-lnk2001.md) or [LNK2019](linker-tools-error-lnk2019.md) error. The LNK1120 message comes last, and shows the unresolved symbol error count.
Expand Down
6 changes: 4 additions & 2 deletions docs/error-messages/tool-errors/linker-tools-error-lnk1123.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
---
description: "Learn more about: Linker Tools Error LNK1123"
title: "Linker Tools Error LNK1123"
ms.date: "12/29/2017"
description: "Learn more about: Linker Tools Error LNK1123"
ms.date: 12/29/2017
f1_keywords: ["LNK1123"]
helpviewer_keywords: ["LNK1123"]
---
# Linker Tools Error LNK1123

> failure during conversion to COFF: file invalid or corrupt

## Remarks

Input files must have the Common Object File Format (COFF) format. If an input file is not COFF, the linker automatically tries to convert 32-bit OMF objects to COFF, or runs CVTRES.EXE to convert resource files. This message indicates that the linker could not convert the file. This can also occur when using an incompatible version of CVTRES.EXE from another installation of Visual Studio, the Windows Development Kit, or .NET Framework.

> [!NOTE]
Expand Down
9 changes: 5 additions & 4 deletions docs/error-messages/tool-errors/linker-tools-error-lnk1127.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
description: "Learn more about: Linker Tools Error LNK1127"
title: "Linker Tools Error LNK1127"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Error LNK1127"
ms.date: 11/04/2016
f1_keywords: ["LNK1127"]
helpviewer_keywords: ["LNK1127"]
ms.assetid: 45404700-1420-4f24-97e1-efb7252ffd8f
---
# Linker Tools Error LNK1127

library is corrupt
> library is corrupt

## Remarks

The library file is corrupt. Rebuild the library.
9 changes: 5 additions & 4 deletions docs/error-messages/tool-errors/linker-tools-error-lnk1136.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Linker Tools Error LNK1136"
title: "Linker Tools Error LNK1136"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Error LNK1136"
ms.date: 11/04/2016
f1_keywords: ["LNK1136"]
helpviewer_keywords: ["LNK1136"]
ms.assetid: 40c6d909-eb3f-4045-a0fc-4caa2f6db506
---
# Linker Tools Error LNK1136

invalid or corrupt file
> invalid or corrupt file

## Remarks

The input file either has a corrupt header or is zero size or abnormally small.

Expand Down
9 changes: 5 additions & 4 deletions docs/error-messages/tool-errors/linker-tools-error-lnk1140.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Linker Tools Error LNK1140"
title: "Linker Tools Error LNK1140"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Error LNK1140"
ms.date: 11/04/2016
f1_keywords: ["LNK1140"]
helpviewer_keywords: ["LNK1140"]
ms.assetid: 468d7651-a7cd-47b9-aead-5bb2fab56121
---
# Linker Tools Error LNK1140

too many modules for program database; link with /PDB:NONE
> too many modules for program database; link with /PDB:NONE

## Remarks

The project contains more than 4096 modules.

Expand Down
9 changes: 5 additions & 4 deletions docs/error-messages/tool-errors/linker-tools-error-lnk1141.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Linker Tools Error LNK1141"
title: "Linker Tools Error LNK1141"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Error LNK1141"
ms.date: 11/04/2016
f1_keywords: ["LNK1141"]
helpviewer_keywords: ["LNK1141"]
ms.assetid: 83b78606-6dd3-43a7-88e2-152f5359cbd8
---
# Linker Tools Error LNK1141

failure during build of exports file
> failure during build of exports file

## Remarks

[LINK](../../build/reference/linking.md) could not build the exports (.exp) file.

Expand Down
9 changes: 5 additions & 4 deletions docs/error-messages/tool-errors/linker-tools-error-lnk1143.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Linker Tools Error LNK1143"
title: "Linker Tools Error LNK1143"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Error LNK1143"
ms.date: 11/04/2016
f1_keywords: ["LNK1143"]
helpviewer_keywords: ["LNK1143"]
ms.assetid: 5dc6b634-d142-4448-b5ea-48e8fb10c10a
---
# Linker Tools Error LNK1143

invalid or corrupt file: no symbol for COMDAT section number
> invalid or corrupt file: no symbol for COMDAT section number

## Remarks

This error can be caused if the object file is corrupt.

Expand Down
9 changes: 5 additions & 4 deletions docs/error-messages/tool-errors/linker-tools-error-lnk1152.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
---
description: "Learn more about: Linker Tools Error LNK1152"
title: "Linker Tools Error LNK1152"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Error LNK1152"
ms.date: 11/04/2016
f1_keywords: ["LNK1152"]
helpviewer_keywords: ["LNK1152"]
ms.assetid: 2523b61a-1359-4612-9c16-7d1f705f32e6
---
# Linker Tools Error LNK1152

cannot resolve one or more undecorated symbols
> cannot resolve one or more undecorated symbols

## Remarks

This error is preceded by one warning [LNK4022](../../error-messages/tool-errors/linker-tools-warning-lnk4022.md) for each undecorated symbol that could not be resolved and by at least two warnings [LNK4002](../../error-messages/tool-errors/linker-tools-warning-lnk4002.md) for the duplicate symbols found for the undecorated symbol.
9 changes: 5 additions & 4 deletions docs/error-messages/tool-errors/linker-tools-error-lnk1158.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Linker Tools Error LNK1158"
title: "Linker Tools Error LNK1158"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Error LNK1158"
ms.date: 11/04/2016
f1_keywords: ["LNK1158"]
helpviewer_keywords: ["LNK1158"]
ms.assetid: 45febf16-d9e1-42db-af91-532e2717fd6a
---
# Linker Tools Error LNK1158

cannot run 'filename'
> cannot run 'filename'

## Remarks

The given executable file called by [LINK](../../build/reference/linking.md) is not in the directory that contains LINK nor in a directory specified in the PATH environment variable.

Expand Down
9 changes: 5 additions & 4 deletions docs/error-messages/tool-errors/linker-tools-error-lnk1164.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Linker Tools Error LNK1164"
title: "Linker Tools Error LNK1164"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Error LNK1164"
ms.date: 11/04/2016
f1_keywords: ["LNK1164"]
helpviewer_keywords: ["LNK1164"]
ms.assetid: da89765c-affa-4f88-b170-6d6b19a577cf
---
# Linker Tools Error LNK1164

section section alignment (number) greater than /ALIGN value
> section section alignment (number) greater than /ALIGN value

## Remarks

The alignment size for the given section in the object file exceeds the value specified with the [/ALIGN](../../build/reference/align-section-alignment.md) option. The **/ALIGN** value must be a power of 2 and must equal or exceed the section alignment given in the object file.

Expand Down
9 changes: 5 additions & 4 deletions docs/error-messages/tool-errors/linker-tools-error-lnk1166.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Linker Tools Error LNK1166"
title: "Linker Tools Error LNK1166"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Error LNK1166"
ms.date: 11/04/2016
f1_keywords: ["LNK1166"]
helpviewer_keywords: ["LNK1166"]
ms.assetid: d69548a8-0efb-44e1-90b7-b27636a4b575
---
# Linker Tools Error LNK1166

cannot adjust code at offset=offset, va=value
> cannot adjust code at offset=offset, va=value

## Remarks

LINK was unable to pad the code as required.

Expand Down
9 changes: 5 additions & 4 deletions docs/error-messages/tool-errors/linker-tools-error-lnk1168.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Linker Tools Error LNK1168"
title: "Linker Tools Error LNK1168"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Error LNK1168"
ms.date: 11/04/2016
f1_keywords: ["LNK1168"]
helpviewer_keywords: ["LNK1168"]
ms.assetid: 97ead151-fd99-46fe-9a1d-7e84dc0b8cc8
---
# Linker Tools Error LNK1168

cannot open filename for writing
> cannot open filename for writing

## Remarks

The linker can't write to `filename`. The file may be in use and its file handle locked by another process, or you may not have write permission for the file, or for the directory or network share it is located in. This error is often caused by a transient condition—for example, a lock held by an anti-virus program, a file search indexing process, or a delay in releasing a lock held by the Visual Studio build system.

Expand Down
9 changes: 5 additions & 4 deletions docs/error-messages/tool-errors/linker-tools-error-lnk1169.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
---
description: "Learn more about: Linker Tools Error LNK1169"
title: "Linker Tools Error LNK1169"
ms.date: "11/04/2016"
description: "Learn more about: Linker Tools Error LNK1169"
ms.date: 11/04/2016
f1_keywords: ["LNK1169"]
helpviewer_keywords: ["LNK1169"]
ms.assetid: e079d518-f184-48cd-8b38-969bf137af54
---
# Linker Tools Error LNK1169

one or more multiply defined symbols found
> one or more multiply defined symbols found

## Remarks

The build failed due to multiple definitions of one or more symbols. This error is preceded by error [LNK2005](../../error-messages/tool-errors/linker-tools-error-lnk2005.md).

Expand Down
Loading