I cant get Iostream.h to work with visual studios. I get the error
c:\program files\microsoft visual studio\myprojects\testi\text1.cpp(2) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Printable View
I cant get Iostream.h to work with visual studios. I get the error
c:\program files\microsoft visual studio\myprojects\testi\text1.cpp(2) : fatal error C1010: unexpected end of file while looking for precompiled header directive
you could solve this, but the brute force method is easier to explain:
Create a new project. Choose "empty project". Insert all your files into the project. Now it should work. I hate precompiled headers.
it shouldn't be capitalized. just do, #include <iostream.h>
You can do 1 of two things....
1) At the top of the file that is giving you this error include the precompiled header ( eg. #include "stdafx.h" )
2) Go into the project settings and select the file that is giving you the error and change the settings so that it doesn't use a precompiled header.