Skip to content

Commit 08485e5

Browse files
author
Colin Robertson
committed
Expand LNK1104 for feedback
1 parent 31c0d6c commit 08485e5

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/error-messages/tool-errors/linker-tools-error-lnk1104.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,27 @@ translation.priority.mt:
3838
# Linker Tools Error LNK1104
3939
cannot open file '*filename*'
4040

41-
The tool could not open the specified file.
41+
The linker could not open the specified file.
4242

43-
To fix this error, check for the following possible causes:
43+
To fix this error, check for the following possible causes:
4444

45-
- You don't have enough disk space.
45+
- The file *filename* does not exist. If your project depends on another project to produce this file, make sure your project dependencies are set correctly.
4646

47-
- The file *filename* does not exist.
47+
- When specifying libraries in a project's Property Pages dialog box, library names must be separated by spaces, not commas.
4848

49-
- When specifying libraries in a project's property pages dialog box, library names must be separated by spaces, not commas.
49+
- The filename or path specified on the command line is incorrect, or the path has an invalid drive specification. Check your spelling and verify the file name and location. If you are building a project that was copied from another computer, check the paths on the [VC++ Directories Property Page](../../ide/vcpp-directories-property-page.md) and update them if necessary.
5050

51-
- The filename or path specified on the command line is incorrect.
51+
- The libraries for the project configuration or platform toolset are not installed. Verify that the platform toolset and Windows SDK specified in the Property Pages for your project is installed, and includes the toolset and libraries needed by your configuration settings. There are separate settings for Debug and Retail configurations, so if one build works but the other causes an error, make sure the settings are correct and the required tools are installed for both configurations.
5252

53-
- The path has an invalid drive specification.
53+
- You don't have enough disk space. It's not unusual for the linker to consume a lot of temporary disk space during a link.
5454

5555
- You have insufficient file permissions to access *filename*.
5656

57-
- The path for *filename* expands to more than 260 characters.
57+
- The path for *filename* expands to more than 260 characters. Change the names or rearrange your directory structure if needed to shorten the paths to the required files.
5858

5959
- If the *filename* is named LNK*n*, which is a filename generated by the linker for a temporary file, the directory specified in the TMP environment variable may not exist, or more than one directory may be specified for the TMP environment variable. Only one directory path should be specified for the TMP environment variable.
6060

61-
- If the error message occurs for a library name, and you recently ported the .mak file from a previous Microsoft Visual C++ development system, the library may no longer be valid. Ensure that the library still exists in this circumstance.
61+
- If the error message occurs for a library name, and you recently ported the .mak file from a previous Microsoft Visual C++ development system, the library may no longer be valid. Ensure that the library name is correct and still exists in the specified location, or update the LIB path to point to the new location.
6262

6363
- Another program may have the file open and the linker cannot write to it. Antivirus programs often temporarily block access to newly created files. Try excluding your project build directories from the antivirus scanner.
6464

0 commit comments

Comments
 (0)