Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,

I have an MFC application under VC++ 2005. I intended to use vector variables
including this line to my project

#include <vector><br />
#include <iostream><br />
<br />
using namespace std;<br />


when i compile my programm i got this issue
C++
error C2065: 'EOF' : undeclared identifier


it's mainly related to the
<br />
#include <vector><br />


is there any explanation to that problem?

Thank You
Posted

EOF is defined in stdio.h. So including this may solve your problem. But EOF is not used by vectors and I think the error happens somewhere else (source file name and line number are shown by the error output).
 
Share this answer
 
Comments
Schehaider_Aymen 17-Jan-12 9:12am    
Thank you Jochen for your try
JackDingler 17-Jan-12 11:17am    
Schehaider, do you know why your change fixed the error?

Hint: It has to do with Jochen's answer...

try creating a sample application just including vector only. you will realize that the problem is with some others. :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900