注册 登录
编程论坛 C++教室

为什么我的VC++6.0会出现这种情况?

此在与世界 发布于 2007-08-01 19:56, 1287 次点击

#include<stdio.h>
void main()
{printf("hello!");
}
-------------------Configuration: example - Win32 Debug--------------------
Compiling...
example.c
Command line error D2027 : cannot execute 'c1'
Error executing cl.exe.

example.obj - 1 error(s), 0 warning(s)
这是为什么?这么简单的程序!哪位能帮帮忙吗?

8 回复
#2
medicihophy2007-08-01 20:46

Command-line Error D2027
cannot execute 'component'
The compiler could not run the given compiler component or linker.

One of the following may have occurred:

Not enough memory was available to load the component. If this error occurred when NMAKE invoked the compiler, run the compiler outside of the makefile.


The current operating system could not run the component. Make sure the path points to the executable files appropriate to your operating system.


The component was corrupted. Recopy the component from the distribution disks, using the SETUP program.


An option was specified incorrectly. For example, the following CL command generates this error:
cl /B1 file1.c

[此贴子已经被作者于2007-8-1 20:51:12编辑过]

#3
medicihophy2007-08-01 20:52

重装VC再不行装系统算了

#4
medicihophy2007-08-01 21:08
是不是你的vc没有了c1.dll文件一般是在
\Microsoft Visual Studio\VC98\Bin\ 下,没有找人给你个看行不行,你VC肯定没装好呢!
#5
此在与世界2007-08-02 19:29

呵呵,我都重装几回了,还是那样!!!!

#6
HK狼2007-09-10 13:25

这是因为编译器找不到'c1.dll'文件
VC中设置以下就可以了

工具(tools)-->选项(Options)-->目录(Directions)-->可执行文件(Executable files) 中添加'c1.dll'的位置

保存设置就OK了 。。。

#7
yuyunliuhen2007-09-10 16:44
换个版本或编译器吧,不过感觉VC++编译C不是很好。
#8
manami2007-09-10 20:37
重新启动VC试一下!
#9
yandongdido2007-09-11 12:35
我知道是怎么回事因为你的C++是从别的机器上下的或者是在安装是按的是默认的目录下的你开启C++后在:
工具下的选择下,在找找那个目录后把那里的所有什么头文件啊的目录全改成你安装的C++处就好使拉
1