Welcome to Dream.In.Code
Become a C++ Expert!

Join 137,432 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,910 people online right now. Registration is fast and FREE... Join Now!




Error code E2209

 
Reply to this topicStart new topic

Error code E2209, How to correct this error

danieljkey
12 Jan, 2008 - 12:32 PM
Post #1

New D.I.C Head
*

Joined: 12 Jan, 2008
Posts: 4

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

CODE

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

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

[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 Jan, 2008 - 12:40 PM
User is offlineProfile CardPM
+Quote Post

Martyr2
RE: Error Code E2209
12 Jan, 2008 - 12:43 PM
Post #2

Programming Theoretician
Group Icon

Joined: 18 Apr, 2007
Posts: 5,260



Thanked: 227 times
Expert In: C/C++, Java, VB, VB.NET, C#, PHP, Web Development, HTML & CSS, Javascript

My Contributions
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++

CODE

//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. smile.gif

This post has been edited by Martyr2: 12 Jan, 2008 - 12:44 PM
User is offlineProfile CardPM
+Quote Post

danieljkey
RE: Error Code E2209
14 Jan, 2008 - 04:20 PM
Post #3

New D.I.C Head
*

Joined: 12 Jan, 2008
Posts: 4

QUOTE(Martyr2 @ 12 Jan, 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++

CODE

//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. smile.gif


User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/5/08 05:04AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month