NMAKE

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
 
(Links)
 
(未显示1个用户的8个中间版本)
第1行: 第1行:
 
The Microsoft Program Maintenance Utility (NMAKE.EXE) is a 32-bit tool that builds projects based on commands contained in a description file.
 
The Microsoft Program Maintenance Utility (NMAKE.EXE) is a 32-bit tool that builds projects based on commands contained in a description file.
 +
==Build steps==
 +
*1. Pre-Build event
 +
*2. Custom build steps on individual files
 +
*3. Proxy generator
 +
*4. MIDL
 +
*5. Resource compiler
 +
*6. The C/C++ compiler
 +
*7. Pre-Link event
 +
*8. Linker or Librarian (as appropriate)
 +
*9. BSCMake
 +
*10. Custom build step on the project
 +
*11. Web deployment tool. The web deployment tool runs as part of a build only if the linker or librarian tools also run. However, you can run the web deployment tool via the Build menu.
 +
*12. Post-Build event
 +
==Command Lines==
 +
运行 vcvars32.bat // C:\Program Files\Microsoft Visual Studio 9.0\VC\bin
 +
 +
hello.cpp
 +
#include <iostream>
 +
int main()
 +
{
 +
      std::cout << "hello, world\n";
 +
}
 +
c:\test\cl hello.cpp
 +
 +
c:\test\hello.exe
 +
 +
加上 lib 库
 +
cl server.cpp /link "D:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib\WS2_32.Lib"
 +
cl client.cpp /link "D:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib\WS2_32.Lib"
 +
编译ACE例子
 +
cl unicast.cpp /I "C:\ACE_Wrappers" /DWIN32 /link "C:\ACE_Wrappers\lib\ACEd.lib"
  
 
==Links==
 
==Links==
 
*[http://msdn.microsoft.com/en-us/library/dd9y37ha(VS.71).aspx NMAKE Reference]
 
*[http://msdn.microsoft.com/en-us/library/dd9y37ha(VS.71).aspx NMAKE Reference]
 
*[http://msdn.microsoft.com/en-us/library/91621w01(VS.71).aspx C/C++ Building Reference]
 
*[http://msdn.microsoft.com/en-us/library/91621w01(VS.71).aspx C/C++ Building Reference]
 +
 +
[[Category:Compiler]]
 +
[[Category:Windows]]

2010年11月16日 (二) 09:38的最后版本

The Microsoft Program Maintenance Utility (NMAKE.EXE) is a 32-bit tool that builds projects based on commands contained in a description file.

[编辑] Build steps

  • 1. Pre-Build event
  • 2. Custom build steps on individual files
  • 3. Proxy generator
  • 4. MIDL
  • 5. Resource compiler
  • 6. The C/C++ compiler
  • 7. Pre-Link event
  • 8. Linker or Librarian (as appropriate)
  • 9. BSCMake
  • 10. Custom build step on the project
  • 11. Web deployment tool. The web deployment tool runs as part of a build only if the linker or librarian tools also run. However, you can run the web deployment tool via the Build menu.
  • 12. Post-Build event

[编辑] Command Lines

运行 vcvars32.bat // C:\Program Files\Microsoft Visual Studio 9.0\VC\bin

hello.cpp

#include <iostream>
int main()
{
     std::cout << "hello, world\n";
}

c:\test\cl hello.cpp

c:\test\hello.exe

加上 lib 库

cl server.cpp /link "D:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib\WS2_32.Lib"
cl client.cpp /link "D:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib\WS2_32.Lib"

编译ACE例子

cl unicast.cpp /I "C:\ACE_Wrappers" /DWIN32 /link "C:\ACE_Wrappers\lib\ACEd.lib"

[编辑] Links

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱