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
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