|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Building on the Command Line
Visual C++ provides command-line tools for programmers who prefer to build their applications from the command prompt. If you want to use the command line to build a project created in Visual C++, you can use:
When you build from the command line, you can get help on warnings, errors, and messages by starting the development environment and clicking either Index or Search on the Help menu.
In This Section
- Setting the Path and Environment Variables for Command-Line Builds
- Describes using VCVARS32.BAT to set the path and environment variables.
- NMAKE Reference
- Provides links to topics discussing the Microsoft Program Maintenance Utility (NMAKE.EXE).
- /MD, /ML, /MT, /LD (Use Run-Time Library)
- Describes using these compiler options to use a Debug or Release run-time library.
- C/C++ Compiler Options
- Provides links to topics discussing the C and C++ compiler options and CL.EXE.
- Linker Options
- Provides links to topics discussing the linker options and LINK.EXE.
- C/C++ Build Tools
- Provides links to the C/C++ build tools provided with Visual C++.
- Building a C/C++ Program
- Provides links to topics describing building your program from the command line or from the integrated development environment of Visual Studio.
- C# Compiler Options
- Provides links to topics discussing the C# compiler options provided with Visual Studio.