仙
仙乡醉客
Unregistered / Unconfirmed
GUEST, unregistred user!
把C++ Builder compiler5.5 安装到 d:/Borland/BCC55 下。
修改 系统环境变量: d:/Borland/BCC55/bin
编写一个最简单的源程序:
#include <iostream.h>
main()
{
int x=3;
x=x+2;
cout<<"The sum of cow is:"<<x<<endl;
}
保存文件名为 d:/bcb/cow.cpp
然后“运行”->cmd-->bcc32 -I d:/bcb/cow
出现如下提示:
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
d:/bcb/cow.cpp:
Error E2209 d:/bcb/cow.cpp 1: Unable to open include file 'iostream.h'
Error E2451 d:/bcb/cow.cpp 6: Undefined symbol 'cout' in function main()
Error E2451 d:/bcb/cow.cpp 6: Undefined symbol 'endl' in function main()
*** 3 errors in Compile ***
哪里还需要设置吗?
修改 系统环境变量: d:/Borland/BCC55/bin
编写一个最简单的源程序:
#include <iostream.h>
main()
{
int x=3;
x=x+2;
cout<<"The sum of cow is:"<<x<<endl;
}
保存文件名为 d:/bcb/cow.cpp
然后“运行”->cmd-->bcc32 -I d:/bcb/cow
出现如下提示:
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
d:/bcb/cow.cpp:
Error E2209 d:/bcb/cow.cpp 1: Unable to open include file 'iostream.h'
Error E2451 d:/bcb/cow.cpp 6: Undefined symbol 'cout' in function main()
Error E2451 d:/bcb/cow.cpp 6: Undefined symbol 'endl' in function main()
*** 3 errors in Compile ***
哪里还需要设置吗?