Link to home
Start Free TrialLog in
Avatar of SCE
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
Avatar of PlanetCpp
PlanetCpp

iosteam?
#include <iostream.h>
or actually..
#include <iostream>
using namespace std;
Avatar of SCE

ASKER

#include <iostream.h>
int main();

{

     cout << "Hello World!\n";
     return 0;
}

That's the source code.
Avatar of SCE

ASKER

nope it's a compiler probelm I think I'm not sure, I'm switching from Metroworks Codewarrior to Borland C++ Compiler
Avatar of SCE

ASKER

I've increased the points cause I would like to know how to use it before I log off tonight. Thanks for understanding.
Avatar of SCE

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

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.
Avatar of SCE

ASKER

no how do you do that?
ASKER CERTIFIED SOLUTION
Avatar of gnunezr
gnunezr
Flag of Mexico image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
As for the error in line 4:

Get rid of the ";" after main()

You wrote:

int main();

Should read:

int main()
Avatar of SCE

ASKER

Thanks, that solved the whole problem. Good Job for thinking out of the box.