Borland无法编译,发生了什么,我甚至无法开始

Del*_*ens 2 c++ compilation borland-c++

C:\BORLAND\BCC55\BIN>bcc32 hello.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
hello.cpp:
Error E2209 hello.cpp 2: Unable to open include file 'iostream'
Error E2090 hello.cpp 6: Qualifier 'std' is not a class or namespace name in fun
ction main()
Error E2379 hello.cpp 6: Statement missing ; in function main()
*** 3 errors in Compile ***
Run Code Online (Sandbox Code Playgroud)

你看,我很伤心!:-(

@oggy:我阅读了Embarcadero的说明.现在,它说......

#include <iostream.h>
int main(void)
{
    cout << "Hello." << endl;
    return 0;
}

C:\Borland\BCC55\Bin\MySource>bcc32 hello.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
hello.cpp:
Error E2209 hello.cpp 1: Unable to open include file 'iostream.h'
Error E2451 hello.cpp 4: Undefined symbol 'cout' in function main()
Error E2451 hello.cpp 4: Undefined symbol 'end' in function main()
Error E2379 hello.cpp 4: Statement missing ; in function main()
*** 4 errors in Compile ***
Run Code Online (Sandbox Code Playgroud)

pax*_*blo 5

说真的,如果继续使用Borland的编译器,你将继续遇到麻烦.它的计算机博物馆是免费的- 这是古老的.版权线本身应足以证明:

Borland C++ 5.5.1 for Win32版权所有(c)1993,2000 Borland

真的想要一个几十年来没有更新的编译器,标准早已落后的编译器吗?

如果您对老式计算机产品感兴趣,那就是编译器,与TRS-80和Apple II仿真器的人在同一个联盟中:-)

下载Microsoft Visual C++ Express并安装它.它与Borland一样免费(与成​​本一样),而且更新.请在此处查看产品页面.

或者还有许多其他更新的开发工具,您也可以免费获得,例如gcc,Code::Blocks等等.

  • `Code::Blocks` 不是编译器,而是 IDE。 (2认同)