注册 登录
编程论坛 C++ Builder

C++编译

樊恒 发布于 2008-10-08 12:51, 1044 次点击
#include <iostream>
using namespace std;
int main ()
{
    cout<<"This is a C++ progranm.";
    return 0;
}


-------------------Configuration: C++ 10 - Win32 Debug--------------------
Compiling...
Error spawning cl.exe

C++ 10.OBJ - 1 error(s), 0 warning(s)
请问高手为什么编译出错?
3 回复
#2
xuxiangyang2008-10-09 14:17
#3
woooh2008-10-11 23:06
是编译器有问题,我以前也遇到过.重新安装下编译器应该就能解决了.
#4
mbstorm2008-10-31 23:40
打开vc界面 点击VC“TOOLS(工具)”—>“Option(选择)”
—>“Directories(目录)”重新设置“Excutable Fils、Include Files、
Library Files、Source Files”的路径。很多情况可能就一个盘符的不同
(例如你的VC装在C,但是这些路径全部在D),改过来就OK了。
百度搜的答案


如果你是按照初始路径安装vc6.0的,路径应为:
executatble files:
C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin
C:\Program Files\Microsoft Visual Studio\VC98\BIN
C:\Program Files\Microsoft Visual Studio\Common\TOOLS
C:\Program Files\Microsoft Visual Studio\Common\TOOLS\WINNT

include files:
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE

library files:
C:\Program Files\Microsoft Visual Studio\VC98\LIB
C:\Program Files\Microsoft Visual Studio\VC98\MFC\LIB

source files:
C:\Program Files\Microsoft Visual Studio\VC98\MFC\SRC
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\ATL\INCLUDE
C:\Program Files\Microsoft Visual Studio\VC98\CRT\SRC
1