SCE
asked on
Borland C++ Compiler Help (newbie question)
I'm having trouble compiling using Borland C++ Compiler
I download and installed the latest version and when I try to compile I get this the error message "unable to open include file 'iosteam.h'"? Any suggestions? This is what I typed in the console...
bcc32 -If:\Borland\bcc55\include -Lf:\Borland\bcc55\Lib c:\helloworld.cpp
I download and installed the latest version and when I try to compile I get this the error message "unable to open include file 'iosteam.h'"? Any suggestions? This is what I typed in the console...
bcc32 -If:\Borland\bcc55\include
ASKER
#include <iostream.h>
int main();
{
cout << "Hello World!\n";
return 0;
}
That's the source code.
int main();
{
cout << "Hello World!\n";
return 0;
}
That's the source code.
ASKER
nope it's a compiler probelm I think I'm not sure, I'm switching from Metroworks Codewarrior to Borland C++ Compiler
ASKER
I've increased the points cause I would like to know how to use it before I log off tonight. Thanks for understanding.
ASKER
here's the source code and a better explanation of what I'm doing.
******
#include <iostream>
int main();
{
std::cout << "Hello World!\n";
return 0;
}
******
I fire up my compiler
c:\borland\bcc32\bin>
then I type in
bcc32 -If:\Borland\bcc55\include -Lf:\Borland\bcc55\Lib c:\helloworld.cpp
and then I get errors line 1 : unable to open include file 'iostream.
line 4 : Declaration terminated incorrectly
Thanks inadvance
******
#include <iostream>
int main();
{
std::cout << "Hello World!\n";
return 0;
}
******
I fire up my compiler
c:\borland\bcc32\bin>
then I type in
bcc32 -If:\Borland\bcc55\include
and then I get errors line 1 : unable to open include file 'iostream.
line 4 : Declaration terminated incorrectly
Thanks inadvance
Did you set up the config file for the compiler? If you just don't know what i'm talking about, i can expand further.
ASKER
no how do you do that?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
As for the error in line 4:
Get rid of the ";" after main()
You wrote:
int main();
Should read:
int main()
Get rid of the ";" after main()
You wrote:
int main();
Should read:
int main()
ASKER
Thanks, that solved the whole problem. Good Job for thinking out of the box.
#include <iostream.h>
or actually..
#include <iostream>
using namespace std;