江湖告急!Error spawning 'vcspawn.exe'.求教大虾!

call_from_dream 2014-07-11 11:17:44
今天早晨,打开VC6.0编写C语言小程序,结果VC罢工了!

系统找不到指定的文件。
Error spawning 'vcspawn.exe'. The build could not be performed.

hel.obj - 1 error(s), 0 warning(s)




忙活了一早上,环境变量Comspec的值没有问题,vcspawn.exe 这个文件,也在C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin文件夹下。
求教大虾,我该怎么做?
...全文
930 49 打赏 收藏 转发到动态 举报
写回复
用AI写文章
49 条回复
切换为时间正序
请发表友善的回复…
发表回复
LIULIULIU123111 2016-04-09
  • 打赏
  • 举报
回复
楼主大大,最后问题怎么解决的??可否教一下,这两天我也被这个搞到头疼
call_from_dream 2014-07-18
  • 打赏
  • 举报
回复
引用 46 楼 zhao4zhong1 的回复:
FileTool.exe 替换打开和添加到项目中 Visual C++ 的新功能 http://support.microsoft.com/kb/241396/zh-cn
引用 45 楼 zhao4zhong1 的回复:
[quote=引用 44 楼 call_from_dream 的回复:] [quote=引用 39 楼 zhao4zhong1 的回复:] 也许是你的.dsp文件坏了。 试试重新建立一个新项目,再将原来的.h、.cpp等手动添加进来……
弱弱的问一句,我该怎么添加呀?[/quote] 在左边FileView的项目树的Source Files上点鼠标右键,Add Files to Folder...[/quote]It does not work! But, thank U all the same!
赵4老师 2014-07-18
  • 打赏
  • 举报
回复
建议楼主沐浴更衣焚香祷告忏悔……
赵4老师 2014-07-17
  • 打赏
  • 举报
回复
FileTool.exe 替换打开和添加到项目中 Visual C++ 的新功能 http://support.microsoft.com/kb/241396/zh-cn
赵4老师 2014-07-17
  • 打赏
  • 举报
回复
引用 44 楼 call_from_dream 的回复:
[quote=引用 39 楼 zhao4zhong1 的回复:] 也许是你的.dsp文件坏了。 试试重新建立一个新项目,再将原来的.h、.cpp等手动添加进来……
弱弱的问一句,我该怎么添加呀?[/quote] 在左边FileView的项目树的Source Files上点鼠标右键,Add Files to Folder...
call_from_dream 2014-07-17
  • 打赏
  • 举报
回复
引用 39 楼 zhao4zhong1 的回复:
也许是你的.dsp文件坏了。 试试重新建立一个新项目,再将原来的.h、.cpp等手动添加进来……
弱弱的问一句,我该怎么添加呀?
call_from_dream 2014-07-17
  • 打赏
  • 举报
回复
引用 41 楼 ForestDB 的回复:
不行装个虚拟机?
老机子了,装VM后估计非卡死不可。
call_from_dream 2014-07-17
  • 打赏
  • 举报
回复
引用 40 楼 taodm 的回复:
珍惜生命,远离VC6.你就让VC6退休吧,换个新点的编译器吧
单位的电脑,年代久远,但里面有很多重要数据和配置文件。换VS,硬件条件太差,用起来会很卡。再说,装VS2005或VS2008,他们都是Microsoft的产品,VC6.0卸了重装N次都不行,装VS2005/2008,估计更够呛!
ForestDB 2014-07-16
  • 打赏
  • 举报
回复
不行装个虚拟机?
赵4老师 2014-07-16
  • 打赏
  • 举报
回复
还可以试试对 C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\VCSPAWN.EXE 使用depends.exe查看其依赖的dll,我这里是 C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin>depends.exe /v /t /p VCSPAWN.EXE ntdll.dll 11/23/2011 00:28:30 (C:\WINDOWS\system32\ntdll.dll) CompanyName Microsoft Corporation FileDescription NT Layer DLL FileVersion 5.2.3790.4937 (srv03_sp2_gdr.111121-0236) InternalName ntdll.dll LegalCopyright (C) Microsoft Corporation. All rights reserved. OriginalFilename ntdll.dll ProductName Microsoft(R) Windows(R) Operating System ProductVersion 5.2.3790.4937 KERNEL32.dll 10/03/2012 15:26:24 (C:\WINDOWS\system32\KERNEL32.dll) CompanyName Microsoft Corporation FileDescription Windows NT BASE API Client DLL FileVersion 5.2.3790.5069 (srv03_sp2_gdr.120928-0333) InternalName kernel32 LegalCopyright (C) Microsoft Corporation. All rights reserved. OriginalFilename kernel32 ProductName Microsoft(R) Windows(R) Operating System ProductVersion 5.2.3790.5069 MSVCRT.dll 03/07/2007 20:00:00 (C:\WINDOWS\system32\MSVCRT.dll) VCSPAWN.EXE 06/17/1998 00:00:00 (VCSPAWN.EXE)
taodm 2014-07-16
  • 打赏
  • 举报
回复
珍惜生命,远离VC6.你就让VC6退休吧,换个新点的编译器吧
赵4老师 2014-07-16
  • 打赏
  • 举报
回复
也许是你的.dsp文件坏了。 试试重新建立一个新项目,再将原来的.h、.cpp等手动添加进来……
赵4老师 2014-07-16
  • 打赏
  • 举报
回复
引用 37 楼 call_from_dream 的回复:
[quote=引用 35 楼 zhao4zhong1 的回复:] 无XP兼容就选Windows 2000 “以管理员身份运行”在“常规”选项卡中,如果还没有,你用的不是Win7及以上操作系统,可不去理它。 email已发。
用得是XP的系统,没有。其他的试了,问题还是老样子。。唉![/quote] 试试用命令行方式生成行不行: msdev 项目名称.dsw /MAKE "项目名称 - Win32 Debug" /REBUILD 或 msdev 项目名称.dsw /MAKE "项目名称 - Win32 Release" /REBUILD Building a Project from the Command Line You can build a Visual C++ project from the command line without first exporting a makefile (MAKEFILE, or filename.mak) and using the NMAKE utility. The basic command syntax is msdev FileName [/MAKE "ProjectName – ConfigName | ALL"] [/REBUILD /CLEAN /NORECURSE /OUT LogFile /USEENV] where FileName is the name of your project (.dsp) or workspace (.dsw) file. For example, the following syntax deletes all intermediate files and then builds a project called MyProject: msdev MyProject.dsp /MAKE "MyProject – Win32 Debug" /REBUILD The following syntax builds a workspace that contains (at least) two projects, building the release configuration of MyProject1 and all configurations of MyProject2, and directing the build output to a file called MyWorkspace.log: msdev MyWorkspace.dsw /MAKE "MyProject1 – Win32 Release" "MyProject2 – ALL" /OUT MyWorkspace.log Note Projects created in Visual C++ versions earlier than 5.0 must first be converted before you can build them from the command line. To convert a project, open it inside the development environment. You can also build all configurations of a certain type within a single project, for example, if you have defined multiple types of Debug configurations. For more information, see "Building by Type of Configuration." Tip Type msdev /? /OUT FileName to pipe the command syntax to a file. The /MAKE Option The /REBUILD, /CLEAN and /NORECURSE options all modify the /MAKE option, and are meaningless without it. Also, unless you specify a FileName after msdev, any /MAKE options will be ignored. /MAKE requires at least one configuration. Parameters Parameter Description FileName A valid workspace or project filename. Must have an extension of .dsp or .dsw. ProjectName The project that contains the configurations you want to build. If Filename is a workspace file, ProjectName must be a part of that workspace. ConfigName Any valid project configuration, or all configurations for a particular project. To build all configurations, simply type "ALL" for the configuration value (must be uppercase). Corresponds to the choices available from the Settings For drop-down list in the Project Settings dialog box. LogFile Name of an optional file used to store the build output information (valid only with the /OUT option). Options Option Operation /MAKE "projectname1 – configuration1 | projectname1 – configuration2 | projectname2 – configuration1 | ALL" Builds the specified configurations. The /CLEAN option modifies /MAKE so that the specified configurations are cleaned rather than built. /? Displays usage information for the msdev command. /CLEAN Deletes intermediate files created during the build process for the specified configuration(s); does not build the project configuration(s). /REBUILD Cleans and builds the specified configuration(s), including all dependent projects. Takes precedence if both /CLEAN and /REBUILD are specified. /NORECURSE Builds the specified project configuration(s) without building any dependent projects. /OUT logfile Creates a log file for the build output, which includes such information as syntax errors and warnings. If you don't specify a filename, the build output information is displayed at the command prompt and is not saved to a file. /USEENV Directs the build system to use environment variables for the current build session, rather than the directory settings specified on the Directories tab (Tools menu, Options command). The PATH, INCLUDE and LIB paths must be set correctly for the build to succeed when /USEENV is specified. /EX MacroName Invokes the named macro (if the associated .dsm file is not loaded, this command will fail). Tip Type msdev /USEENV at the command line to launch Visual C++ and use the environment variables for the duration of that IDE session. Building by Type of Configuration For any single project, you can build all configurations of a certain type. The build system uses limited pattern matching to recognize the name of the configuration you specify. For example, if your project contains Debug and Release configurations for both regular and UNICODE applications, you can build both configurations for only the UNICODE application by issuing the following command: msdev MyProject.dsp /MAKE "MyProject – UNICODE" Or, if your project contains several types of Debug and Release configurations, you can build all of the Debug configurations: msdev MyProject.dsp /MAKE "MyProject – DEBUG" This pattern matching gives you even more flexibility when customizing your batch builds.
call_from_dream 2014-07-16
  • 打赏
  • 举报
回复
引用 35 楼 zhao4zhong1 的回复:
无XP兼容就选Windows 2000 “以管理员身份运行”在“常规”选项卡中,如果还没有,你用的不是Win7及以上操作系统,可不去理它。 email已发。
用得是XP的系统,没有。其他的试了,问题还是老样子。。唉!
赵4老师 2014-07-16
  • 打赏
  • 举报
回复
曾经有一套好用的编译链接调试环境,我没有珍惜,直到失去她时,我才追悔莫及,如果……一万年!
赵4老师 2014-07-16
  • 打赏
  • 举报
回复
无XP兼容就选Windows 2000 “以管理员身份运行”在“常规”选项卡中,如果还没有,你用的不是Win7及以上操作系统,可不去理它。 email已发。
call_from_dream 2014-07-16
  • 打赏
  • 举报
回复
引用 32 楼 zhao4zhong1 的回复:
要不要我email给你发一个我这边的C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\VCSPAWN.EXE试试?
bef2010@qq.com
发过来试试吧。谢谢了!

开始、程序、Microsoft Visual Studio 6.0、Microsoft Visual C++ 6.0上点鼠标右键,属性:

快捷方式:
目标:"C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\MSDEV.EXE"
起始位置:"C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin"

兼容性:无XP兼容模式


以管理员身份运行这个程序 也不知道怎么运,有种老天爷存心玩我的感觉!
赵4老师 2014-07-16
  • 打赏
  • 举报
回复
开始、程序、Microsoft Visual Studio 6.0、Microsoft Visual C++ 6.0上点鼠标右键,属性: 快捷方式: 目标:"C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\MSDEV.EXE" 起始位置:"C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin" 兼容性: 以XP兼容模式运行这个程序 以管理员身份运行这个程序 确定。 试试看?
赵4老师 2014-07-16
  • 打赏
  • 举报
回复
要不要我email给你发一个我这边的C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\VCSPAWN.EXE试试?
call_from_dream 2014-07-16
  • 打赏
  • 举报
回复
引用 30 楼 zhao4zhong1 的回复:
还可以试试对 C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\VCSPAWN.EXE 使用depends.exe查看其依赖的dll,我这里是 C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin>depends.exe /v /t /p VCSPAWN.EXE ntdll.dll 11/23/2011 00:28:30 (C:\WINDOWS\system32\ntdll.dll) CompanyName Microsoft Corporation FileDescription NT Layer DLL FileVersion 5.2.3790.4937 (srv03_sp2_gdr.111121-0236) InternalName ntdll.dll LegalCopyright (C) Microsoft Corporation. All rights reserved. OriginalFilename ntdll.dll ProductName Microsoft(R) Windows(R) Operating System ProductVersion 5.2.3790.4937 KERNEL32.dll 10/03/2012 15:26:24 (C:\WINDOWS\system32\KERNEL32.dll) CompanyName Microsoft Corporation FileDescription Windows NT BASE API Client DLL FileVersion 5.2.3790.5069 (srv03_sp2_gdr.120928-0333) InternalName kernel32 LegalCopyright (C) Microsoft Corporation. All rights reserved. OriginalFilename kernel32 ProductName Microsoft(R) Windows(R) Operating System ProductVersion 5.2.3790.5069 MSVCRT.dll 03/07/2007 20:00:00 (C:\WINDOWS\system32\MSVCRT.dll) VCSPAWN.EXE 06/17/1998 00:00:00 (VCSPAWN.EXE)
如果死能解决问题,我想,我早就做了。赵老师,谢谢你了!虽然问题没有解决,不过你的热心已经让我感动+激动很久了!再过一天,如果还没好的方法,我就结贴了。
加载更多回复(29)

69,373

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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