Error code E2209

How to correct this error

Page 1 of 1

2 Replies - 4701 Views - Last Post: 14 January 2008 - 05:20 PM Rate Topic: -----

#1 danieljkey  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 12-January 08

Error code E2209

Posted 12 January 2008 - 01:32 PM

[Could someone please help me correct the following C++ code error?...I'm using a Borland 5.5 compiler]

//Hello World!
#include <<iostream.h>>
int main()
{
cout << "Hello, World!" << endl;
}


*edit: Please use code tags in the future. Thanks! :code:

[code error E2209 comes up stating "unable to open include file 'iostream.h'...I did configure the correct files for bcc32.cfg and ilink32.cfg (-I"c:\Borland\Bcc55\include", -L"c:\Borland\Bcc55\lib" and -L"c:\Borland\Bcc55\lib"]

This post has been edited by Martyr2: 12 January 2008 - 01:40 PM


Is This A Good Question/Topic? 0
  • +

Replies To: Error code E2209

#2 Martyr2  Icon User is offline

  • Programming Theoretician
  • member icon

Reputation: 4337
  • View blog
  • Posts: 12,137
  • Joined: 18-April 07

Re: Error code E2209

Posted 12 January 2008 - 01:43 PM

Try using just #include <iostream.h> (notice the one set of angle brackets) and if that doesn't work try #include <iostream>. You may also need to add the std namespace. Your main function also need to return an integer, preferably zero. Here is an example that works in Microsoft C++

//Hello World!
#include <iostream>
using namespace std;

int main()
{
	 cout << "Hello, World!" << endl;
	 return 0;
}



Give that a try in borland and see if it works for you. And again, if not try using just <iostream.h> with one set of brackets. :)

This post has been edited by Martyr2: 12 January 2008 - 01:44 PM

Was This Post Helpful? 0
  • +
  • -

#3 danieljkey  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 12-January 08

Re: Error code E2209

Posted 14 January 2008 - 05:20 PM

View PostMartyr2, on 12 Jan, 2008 - 01:43 PM, said:

Try using just #include <iostream.h> (notice the one set of angle brackets) and if that doesn't work try #include <iostream>. You may also need to add the std namespace. Your main function also need to return an integer, preferably zero. Here is an example that works in Microsoft C++

//Hello World!
#include <iostream>
using namespace std;

int main()
{
	 cout << "Hello, World!" << endl;
	 return 0;
}



Give that a try in borland and see if it works for you. And again, if not try using just <iostream.h> with one set of brackets. :)

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1