Mercurial > vim
comparison src/INSTALLpc.txt @ 6149:4c845a1600d2 v7.4.412
updated for version 7.4.412
Problem: Can't build on Windows XP with MSVC.
Solution: Add SUBSYSTEM_VER to the Makefile. (Yongwei Wu)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 22 Aug 2014 18:12:57 +0200 |
parents | 1003f9b262d7 |
children | 112c80234ce3 |
comparison
equal
deleted
inserted
replaced
6148:aeafe78fc869 | 6149:4c845a1600d2 |
---|---|
188 http://www.microsoft.com/express/vc/Default.aspx | 188 http://www.microsoft.com/express/vc/Default.aspx |
189 This includes the IDE and the debugger. | 189 This includes the IDE and the debugger. |
190 | 190 |
191 To set the environment execute the msvc2010.bat script. You can then build | 191 To set the environment execute the msvc2010.bat script. You can then build |
192 Vim with Make_mvc.mak. | 192 Vim with Make_mvc.mak. |
193 | |
194 | |
195 Targeting Windows XP with new MSVC *new-msvc-windows-xp* | |
196 ---------------------------------- | |
197 | |
198 Beginning with Visual C++ 2010, Microsoft changed the behavior of LINK.EXE | |
199 so that it targets Windows 6.0 (Vista) by default. In order to override | |
200 this, the target Windows version number needs to be passed to LINK like | |
201 follows: | |
202 LINK ... /subsystem:console,5.01 | |
203 | |
204 Make_mvc.mak now supports a macro SUBSYSTEM_VER to pass the Windows version. | |
205 Use lines like follows to target Windows XP (assuming using Visual C++ 2012 | |
206 under 64-bit Windows): | |
207 set WinSdk71=%ProgramFiles(x86)%\Microsoft SDKs\Windows\v7.1A | |
208 set SDK_INCLUDE_DIR=%WinSdk71%\Include | |
209 set INCLUDE=%WinSdk71%\Include;%INCLUDE% | |
210 set LIB=%WinSdk71%\Lib;%LIB% | |
211 set PATH=%WinSdk71%\Bin;%PATH% | |
212 set CL=/D_USING_V110_SDK71_ | |
213 nmake -f Make_mvc.mak ... WINVER=0x0501 SUBSYSTEM_VER=5.01 | |
214 | |
215 The following Visual C++ team blog can serve as a reference page: | |
216 http://blogs.msdn.com/b/vcblog/archive/2012/10/08/windows-xp-targeting-with-c-in-visual-studio-2012.aspx | |
193 | 217 |
194 | 218 |
195 2. MinGW | 219 2. MinGW |
196 ======== | 220 ======== |
197 | 221 |