Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cannot locate include files

Status
Not open for further replies.

Maurader

Technical User
May 8, 2002
59
CA
Hi,

I am using Visual C++ 6, and trying to develop a MFC dll...something is wrong with my paths or something, but I cannot figure out what, so I simplified it to

#include <iostream.h>

void main()
{
cout << &quot;hello&quot;;
}

and it gives me error
c:\chook dev kit\shapes\shapes.cpp(9) : fatal error C1010: unexpected end of file while looking for precompiled header directive

can anybody guess at what is wrong?

Thanks
 
at the top of the file, put

#include &quot;stdafx.h&quot;

It's looking for the precompiled header information. If you ask for a simple project when you create a new project, it makes a stdafx.h file for you. If you specify an empty project it does not.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top