c语言运行出错

来源:百度知道 编辑:UC知道 时间:2024/06/14 08:59:05
我用vc++6.0运行简单的程序
#include <stdio.h>
void main()
{
printf("ssss");
}
可是总说有错误。显示--------------------Configuration: first - Win32 Debug--------------------
Compiling...
12.c
Command line error D2027 : cannot execute 'c1'
Error executing cl.exe.

first.exe - 1 error(s), 0 warning(s)
这是为什么呀?请好心人指教!谢谢

曾经出过你这样的问题,项目建错了,你先确认建的项目是否win32控制台平台,平且是空项目
如果确认方式正确的还,那就应该是,看这连接吧
http://blog.csdn.net/chasele/archive/2006/04/27/693491.aspx

运行regedit,删除注册表左侧的项目:

HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0

再重新安装VC6.0,应该没问题了。

推荐下载:

http://hi.baidu.com/jsj08/blog/item/06abf0450d8aac85b3b7dc5a.html

中文版和英文版都有,只有13M。

我没有遇到这样的错误,查了一下msdn后发现给出这样的回答
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