-
Compiler
Hello, I can't get the borland compiler to run... I got the following message:
Borland C++ 5.2 for Win32 Copyright (c) 1993, 1997 Borland International
primeiro.cpp:
Error primeiro.cpp 1: Unable to open include file 'iostram.h'
Error primeiro.cpp 6: Undefined symbol 'cout' in function main()
Warning primeiro.cpp 8: 'bell' is assigned a value that is never used in function main()
*** 2 errors in Compile ***
The source code for my program is the following:
#include <iostram.h>
main()
{
char bell='\a';
cout << "Bell" << bell;
return 0;
}
-
Buddy is #include<iostream.h> not iostram
-
Still not working :( ....
Program:
#include <iostream.h>
main()
{
char bell='\a';
cout << "Bell" << bell;
return 0;
}
Error Message:
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
primeiro.cpp:
Error E2209 primeiro.cpp 1: Unable to open include file 'iostream.h'
Error E2451 primeiro.cpp 6: Undefined symbol 'cout' in function main()
Warning W8004 primeiro.cpp 8: 'bell' is assigned a value that is never used in function main()
*** 2 errors in Compile ***
-
Try <iostream> (no .h).
Both compile & run fine on my Dev C++. Could be your paths are screwed.
-
Remember the using directive, like so:
Code:
#include <iostream>
using namespace std;
int main() /*it is best to declare main as returning type int*/