Running the Compiler from the Command Line
2014-07-15 23:04
239 查看
Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
C:\Users\Administrator>d:
D:\>cd D:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools
D:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools>vsvars32.bat
D:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools>cd D:\vsProjects\prog1_1.1.1\prog1_1.1.1
D:\vsProjects\prog1_1.1.1\prog1_1.1.1>dir
驱动器 D 中的卷没有标签。
卷的序列号是 480A-CA50
D:\vsProjects\prog1_1.1.1\prog1_1.1.1 的目录
2014/06/10 00:03 <DIR> .
2014/06/10 00:03 <DIR> ..
2014/06/09 23:30 <DIR> Debug
2014/06/10 00:03 107 prog1.cpp
2014/06/09 23:29 4,087 prog1_1.1.1.vcxproj
2014/06/09 23:29 946 prog1_1.1.1.vcxproj.filters
3 个文件 5,140 字节
3 个目录 96,287,248,384 可用字节
D:\vsProjects\prog1_1.1.1\prog1_1.1.1>cl /EHsc prog1.cpp
用于 x86 的 Microsoft (R) C/C++ 优化编译器 18.00.21005.1 版版权所有(C) Microsoft
Corporation。 保留所有权利。
prog1.cpp
Microsoft (R) Incremental Linker Version 12.00.21005.1
Copyright (C) Microsoft Corporation. All rights reserved.
/out:prog1.exe
prog1.obj
D:\vsProjects\prog1_1.1.1\prog1_1.1.1>dir
驱动器 D 中的卷没有标签。
卷的序列号是 480A-CA50
D:\vsProjects\prog1_1.1.1\prog1_1.1.1 的目录
2014/06/10 00:04 <DIR> .
2014/06/10 00:04 <DIR> ..
2014/06/09 23:30 <DIR> Debug
2014/06/10 00:03 107 prog1.cpp
2014/06/10 00:04 148,480 prog1.exe
2014/06/10 00:04 80,354 prog1.obj
2014/06/09 23:29 4,087 prog1_1.1.1.vcxproj
2014/06/09 23:29 946 prog1_1.1.1.vcxproj.filters
5 个文件 233,974 字节
3 个目录 96,287,014,912 可用字节
D:\vsProjects\prog1_1.1.1\prog1_1.1.1>prog1
hello, world
D:\vsProjects\prog1_1.1.1\prog1_1.1.1>
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。
C:\Users\Administrator>d:
D:\>cd D:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools
D:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools>vsvars32.bat
D:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools>cd D:\vsProjects\prog1_1.1.1\prog1_1.1.1
D:\vsProjects\prog1_1.1.1\prog1_1.1.1>dir
驱动器 D 中的卷没有标签。
卷的序列号是 480A-CA50
D:\vsProjects\prog1_1.1.1\prog1_1.1.1 的目录
2014/06/10 00:03 <DIR> .
2014/06/10 00:03 <DIR> ..
2014/06/09 23:30 <DIR> Debug
2014/06/10 00:03 107 prog1.cpp
2014/06/09 23:29 4,087 prog1_1.1.1.vcxproj
2014/06/09 23:29 946 prog1_1.1.1.vcxproj.filters
3 个文件 5,140 字节
3 个目录 96,287,248,384 可用字节
D:\vsProjects\prog1_1.1.1\prog1_1.1.1>cl /EHsc prog1.cpp
用于 x86 的 Microsoft (R) C/C++ 优化编译器 18.00.21005.1 版版权所有(C) Microsoft
Corporation。 保留所有权利。
prog1.cpp
Microsoft (R) Incremental Linker Version 12.00.21005.1
Copyright (C) Microsoft Corporation. All rights reserved.
/out:prog1.exe
prog1.obj
D:\vsProjects\prog1_1.1.1\prog1_1.1.1>dir
驱动器 D 中的卷没有标签。
卷的序列号是 480A-CA50
D:\vsProjects\prog1_1.1.1\prog1_1.1.1 的目录
2014/06/10 00:04 <DIR> .
2014/06/10 00:04 <DIR> ..
2014/06/09 23:30 <DIR> Debug
2014/06/10 00:03 107 prog1.cpp
2014/06/10 00:04 148,480 prog1.exe
2014/06/10 00:04 80,354 prog1.obj
2014/06/09 23:29 4,087 prog1_1.1.1.vcxproj
2014/06/09 23:29 946 prog1_1.1.1.vcxproj.filters
5 个文件 233,974 字节
3 个目录 96,287,014,912 可用字节
D:\vsProjects\prog1_1.1.1\prog1_1.1.1>prog1
hello, world
D:\vsProjects\prog1_1.1.1\prog1_1.1.1>
相关文章推荐
- Running Your iOS App in the Simulator From The Command Line
- Microsoft SQL Reporting Services – Running a Report from the Command Line
- Running a command on every machine in your domain from the command line
- Running DataVision from the Command Line
- Running scripts from the command line with idascript
- Xcode4: Running Application Tests From The Command Line in iOS
- Running the complier from the Command Line
- Creating SQL procedures from the command line
- Testing Pipelines From The Command Line
- Lab01 Manipulating text files from the command line
- How to use FTP from the command line.
- Testing Pipelines From The Command Line
- luigi学习7--running from command line
- How to easily open files and URLs from the command line
- Using the Code Coverage Tools from the Command Line
- Calling JNI Functions with Java Object Arguments from the Command Line
- [转]How do I run msbuild from the command line using Windows SDK 7.1?
- Session 5: Managing OpenStack from the Command Line
- Export Xellerate configuration objects to XML files from the command-line
- [转] PhoneGap build with iOS from the command line