c++ undefined symbol 'end1'

Score
0
Vote Up
December 7, 2010 at 22:45:51 Pacific
Specs: Windows XP

This is the code i have been working on.

#include <iostream.h>
using namespace std;
int main()
{
cout << "hi there!" << end1;
return 0;
}

but it keeps coming up with this error

Error TEST.CPP 2: Declaration syntax error
Error TEST.CPP 5: Undefined symbol 'end1'

Can somebody help me out here? i'm using Turbo c++ Ide compiler


Reply ↓  Report •


#1
Vote Down
Score
3
Vote Up
December 7, 2010 at 22:52:53 Pacific

It is small latter L ( l ) not one ( 1 ).

type endl, not end1.

.....................................
_Adnan_


Reply ↓  Report •

#2
Vote Down
Score
2
Vote Up
December 8, 2010 at 00:19:13 Pacific

using namespace std;

turbo doesn't know of namespaces as I recall; remove / comment out that line to clean up the other error.


Reply ↓  Report •

#3
Vote Down
Score
0
Vote Up
December 8, 2010 at 22:50:18 Pacific

Thanks!

Reply ↓  Report •

Reply to Message Icon Start New Discussion
Related Posts

« help C# errors playing wmplayer using te... »

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.

Ask the Community!
Describe your Problem
Example: Hard Drive Not Detected on My PC