当前位置: 代码迷 >> C语言 >> VC6.0使用问题
  详细解决方案

VC6.0使用问题

热度:224   发布时间:2008-01-23 19:30:56.0
VC6.0使用问题
大家好!
我的VC++6.0 在装好后,我在DEVC++中调试通过的程序,在VC6.0中无法运行!
代码

#include <stdio.h>
int main(void)
{
printf("text");
return 0;
}

编译器报错信息为
--------------------Configuration: text2 - Win32 Debug--------------------
Compiling...
StdAfx.cpp
Compiling...
text2.cpp
text.cpp
d:\software\text\text2\text.cpp(7) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Generating Code...
执行 cl.exe 时出错.
text2.exe - 1 error(s), 0 warning(s)

我一直不知道是什么原因!
搜索更多相关的解决方案: cpp  text  Compiling  Generating  directive  

----------------解决方案--------------------------------------------------------
stdafx.h包含上
----------------解决方案--------------------------------------------------------
建立win32 console application工程时选择建立空的工程
否则在工程属性设置中修改:project-->setting-->c/c++选项,在下面的Project Options中删除/Yu"stdafx.h"
----------------解决方案--------------------------------------------------------
网络问题,发重了

[[italic] 本帖最后由 VxWorks 于 2008-1-23 20:30 编辑 [/italic]]
----------------解决方案--------------------------------------------------------
可恨的网络

[[italic] 本帖最后由 VxWorks 于 2008-1-23 20:35 编辑 [/italic]]
----------------解决方案--------------------------------------------------------
--------------------Configuration: text3 - Win32 Debug--------------------
Compiling...
StdAfx.cpp
Compiling...
text3.cpp
text.cpp
d:\software\text\text3\text.cpp(2) : fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory
Generating Code...
执行 cl.exe 时出错.

text3.exe - 1 error(s), 0 warning(s)

还是不行
----------------解决方案--------------------------------------------------------
去百度上搜一下 有很多解决方案
----------------解决方案--------------------------------------------------------
七楼,
哥们,问一句,关键字是什么?
是VC++6.0 还是c++语言?
----------------解决方案--------------------------------------------------------
  相关解决方案