I just downloaded and installed borland Turbo C++ , the installation was quick and easy.

I started by writing a simple hello world program but the compiler wont let me run the program, on compiling I kept on getting the error

Error D:\TC\INCLUDE\IOSTREAM.H 38: Declaration syntax error, there were like more than a dozen of these iostream errors

It was clear from the error that there was something wrong with the environment and installation, rather then the program itself as it was complaining about the standard iostream.h file.
After lot soul searching and brainstorming I finally found out that the problem was that I was compiling the C++ program file, without saving it with a .cpp extension !!

Trackback

only 1 comment untill now

  1. Hey, thanks a million for putting up this post. I had the same problem and now it’s solved by using the cpp extension. Thanks!!! 🙂

Add your comment now