Skip to content

Commit 3d4d9d5

Browse files
zekesonxxrvagg
authored andcommitted
doc(wiki): Added details for properly fixing
1 parent 59668bb commit 3d4d9d5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Visual-Studio-2010-Setup.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,10 @@ According to the readme file in [Microsoft Visual C++ 2010 Service Pack 1 Compil
99

1010
On x64 environments, the last update in the list fixes errors about missing compilers and `error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found.`
1111

12-
If you experience the error `LNK1181` file `kernel32.lib` not found, try compiling using the `Windows SDK 7.1 Command Prompt` start menu shortcut.
12+
13+
#### `LNK1181` file `kernel32.lib` not found
14+
Easy Solution: try compiling using the `Windows SDK 7.1 Command Prompt` start menu shortcut.
15+
16+
Proper Solution: To properly fix the situation, you'll need to globally set some environment variables.
17+
To get their proper values, launch the `Windows SDK 7.1 Command Prompt`, then within the prompt get the value of the following variables: `PATH` (it adds some things to PATH, you can put these anywhere in the PATH list), `LIBPATH`, `LIB`, `PlatformToolset`, `WindowsSDKDir`, `sdkdir`, `TARGET_PLATFORM`, and `VS120COMNTOOLS`.
18+
Take their values, and put them in either your User or System variables. You can easily get to this menu by doing `Win+Pause/Break`, `Advanced System Settings`, and then `Environment Variables`.

0 commit comments

Comments
 (0)