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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Starting out in VC++

Status
Not open for further replies.

3pmilk

MIS
Jun 20, 2002
46
US
Hi,

I wrote a simple "Hello world" program in VC++ and when I executed the program, it gave me the following error message:
--------------------Configuration: Hello - Win32 Debug--------------------
Compiling...
Helloworld.cpp
c:\program files\microsoft visual studio\myprojects\hello\helloworld.cpp(12) : fatal error C1010: unexpected end of file while looking for precompiled header directive. Error executing cl.exe.

Helloworld.obj - 1 error(s), 0 warning(s)

What I'm thinking is that it can't find the iostream.h file in the default directory, and therefore can't process the cout statement. I went ahead and searched where the iostream.h file was and it was in my C:\program files\Microsoft Visual Studio\VC98\Include directory. My question is: how come it can't find that file? Do I need to set that path as my environmental variables? What do I need to do in order for it to find that file? Any help will be greatly appreciated.

Thanks, Wendy
 
Hi guys,

forget about my question, I figure it out. Thanks, Wendy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top