Subj : Re: Compiling error To : borland.public.cpp.borlandcpp From : Vivi Orunitia Date : Sun Nov 28 2004 04:15 pm "DS" wrote in news:41a5fb7f@newsgroups.borland.com: > Hi, I am just beginning to learn C++, so please bear with me. While > trying to compile a simple "Hello World" type program, I keep getting > the following errors. > 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 'endl' in functionmain() > > Did I make a mistake while installing to XP? Thanks for looking. > > > Hi, I am just beginning to learn C++, so please bear with me. While trying > to compile a simple "Hello World" type program, I keep getting the following > errors. > 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 'endl' in functionmain() > make sure you configured the bcc32.cfg and ilink32.cfg as explained in the readme.txt file in your BCC directory. Also you should use #include and drop the .h since it's deprecated. When using this you'll have to also use the std:: resolution operator since the standard stuff is in the std namespace now. If you prefer not to type std:: for every cin and cout you do then you can join the std into the global namespace by putting using namespace std; near the top of your source. Hope that helps .