简体   繁体   中英

nmake fails to compile TSF samples with VS 2012

I'm trying to build Text Services Framework Sample Codes using Visual Studio 2012 on Windows 8 RC 64bit. The instructions on these samples were based on VS 2003. Here's the part of that (wrote my problems in bold )

  1. Open a command window.
  2. Run vsvars32.bat. If you have Visual Studio .NET 2003 installed on your C: drive, the command is "C:\\Program Files\\Microsoft Visual Studio .NET 2003\\Common7\\Tools\\vsvars32.bat".
  3. Run SetEnv.bat. If you have Visual Studio .NET installed on your C: drive, the command is "C:\\Program Files\\Microsoft SDK\\SetEnv.bat" /RETAIL. ( I couldn't find the file on my system )
  4. Navigate to the sample directory.
  5. Run nmake. ( Getting error here: win32.mak not found )

What might be the possible solution?

  1. Open a command window.
  2. Run vsvars32.bat. "C:\\Program Files\\Microsoft\\Visual Studio 11.0\\Common7\\Tools\\vsvars32.bat".
  3. Copy win32.mak from C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1\\Include to the sample directory.
  4. Navigate to the sample directory and run nmake.

Use the Visual Studio Command Prompt. This loads the required variables.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM