NMAKE

来自开放百科 - 灰狐
2010年11月16日 (二) 09:38Allen (讨论 | 贡献)的版本

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转到: 导航, 搜索

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

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

变换
操作
导航
工具箱