error MSB6006: “cmd.exe”已退出,代码为 1

jluhongfeng 2014-08-01 10:52:37
在win7 64位专业版下,写了了一个服务,每次build的时候都会出现标题中的错误,有没有哪位大神帮忙解释下为什么呀。输出如下:

1>------ 已启动生成: 项目: AsclImage, 配置: Debug Win32 ------
1> Generating Message Catalogue
1> Microsoft (R) Message Compiler Version 1.12.7600
1> Copyright (c) Microsoft Corporation. All rights reserved.
1>
1> usage:
1> MC [-?aAbcdnouUv] [-m <length>] [-h <path>] [-e <extension>] [-r <path>] [-x <path>]
1> [-w <file>] [-W <file>] [-z <basename> ]
1> [-km | -um | -cs <namespace>] [-mof] [-p <prefix>] [-P <prefix>]
1> [<filename.man>] [<filename.mc>]
1>
1> -? - displays this message
1> -a - input file is ANSI (default).
1> -A - messages in .BIN file should be ANSI.
1> -b - .BIN filename should have .mc filename included for uniqueness.
1> -c - sets the Customer bit in all of the message Ids.
1> -d - FACILTY and SEVERITY values in header file in decimal.
1> Sets message values in header to decimal initially.
1> -e <extension> - Specify the extension for the header file (1-3 chars)
1> -h <path> - gives the path of where to create the C include file
1> Default is .\
1> -m <length> - generate a warning if the size of any message exceeds
1> <length> characters.
1> -n - terminates all strings with null's in the message tables.
1> -o - generate OLE2 header file (use HRESULT definition instead of
1> status code definition)
1> -r <path> - gives the path of where to create the RC include file
1> and the binary message resource files it includes.
1> Default is .\
1>
1> -s <path> - generate binary resource per provider
1> generate summary global resource MCGenResource.BIN
1>
1> -t <path> - validate against baseline resource
1>
1> -u - input file is Unicode.
1> -U - messages in .BIN file should be Unicode (default).
1> -v - gives verbose output.
1> -W <file> - specifies path to winmeta.xml file.
1> -w <file> - specifies path to eventman.xsd file.
1> -x <path> - gives the path of where to create the .dbg C include
1> file that maps message Ids to their symbolic name.
1> This option can only be used with message text file.
1> -z <basename> - gives the base name of the generated files.
1> Default is basename of input file.
1> <filename.man> - gives the name of manifest file to compile
1> <filename.mc> - gives the name of a message file to compile
1>
1> Code Generation Options
1> -----------------------
1> -km - generate Kernel Mode logging macros
1> -um - generate User Mode logging macros
1> -cs <namespace> - generate C# (managed) logging class
1> based on FX3.5 Eventing class
1> -css <namespace> - generate static C# (managed) logging class
1> based on FX3.5 Eventing class
1>
1> -co - add callout macro to invoke user code at loggin.
1> not availalbe for c#, and ignored.
1> -mof - generate downlevel support for all function/macros generated.
1> MOF file will be generated from the manifest.
1> MOF file will be placed in the location specified by
1> the "-h" switch.
1> -p <prefix> - defines the macro name prefix applied to
1> each generated logging macro.
1> Default is "EventWrite"
1> -P <prefix> - defines the text at the start of each event
1> symbol name to remove before forming the macro names.
1> Default is NULL.
1>
1> Note: Switches 'w' and 'W' are not required and will be removed in future.
1> Note: At most one .mc and/or one .man file can be processed in one invocation.
1> Note: Generated files have the Archive bit cleared.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: “cmd.exe”已退出,代码为 1。
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
...全文
2561 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
embrace_forest 2016-07-23
  • 打赏
  • 举报
回复
听说是把中文路径改为英文路径,但我没有中文路径还是出错

33,321

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 新手乐园
社区管理员
  • 新手乐园社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧