Fatal error C1010
-
Im getting this error in a project Im working on, its referencing a .cpp file with function definitions, Im using the same .h & .cpp file on their own just using a main.cpp to test it and it works fine, but when I brought it over to the larger project I get this error: fatal error C1010: unexpected end of file while looking for precompiled header directive. I checked the MSDN library and it was of absolutly no help whatsoever, I dont know what it even means. Im using VC7 with win2k. Cheers We have a mathematician, a different kind of mathematician, and a statistician!
-
Im getting this error in a project Im working on, its referencing a .cpp file with function definitions, Im using the same .h & .cpp file on their own just using a main.cpp to test it and it works fine, but when I brought it over to the larger project I get this error: fatal error C1010: unexpected end of file while looking for precompiled header directive. I checked the MSDN library and it was of absolutly no help whatsoever, I dont know what it even means. Im using VC7 with win2k. Cheers We have a mathematician, a different kind of mathematician, and a statistician!
arf, i've already seen that error, and i've got abslolutely no idea about its cause. To avoid that, check Your project settings and disable the precompiled headers... it will work. if anybody know about the reason this error occurs, let us know !!
TOXCCT >>> GEII power
-
Im getting this error in a project Im working on, its referencing a .cpp file with function definitions, Im using the same .h & .cpp file on their own just using a main.cpp to test it and it works fine, but when I brought it over to the larger project I get this error: fatal error C1010: unexpected end of file while looking for precompiled header directive. I checked the MSDN library and it was of absolutly no help whatsoever, I dont know what it even means. Im using VC7 with win2k. Cheers We have a mathematician, a different kind of mathematician, and a statistician!
-
Im getting this error in a project Im working on, its referencing a .cpp file with function definitions, Im using the same .h & .cpp file on their own just using a main.cpp to test it and it works fine, but when I brought it over to the larger project I get this error: fatal error C1010: unexpected end of file while looking for precompiled header directive. I checked the MSDN library and it was of absolutly no help whatsoever, I dont know what it even means. Im using VC7 with win2k. Cheers We have a mathematician, a different kind of mathematician, and a statistician!
Your larger project is setup to use precompiled headers. This allows you to setup a set of include files that are used through-out your project and have them compiled just once. This is normally done by including the required headers in stdafx.h. Then when compiling the project VC++ expects stdafx.h to be included at the start of each .cpp file. Just add
#include "stdafx.h"
to the start of the new .cpp file. -
Im getting this error in a project Im working on, its referencing a .cpp file with function definitions, Im using the same .h & .cpp file on their own just using a main.cpp to test it and it works fine, but when I brought it over to the larger project I get this error: fatal error C1010: unexpected end of file while looking for precompiled header directive. I checked the MSDN library and it was of absolutly no help whatsoever, I dont know what it even means. Im using VC7 with win2k. Cheers We have a mathematician, a different kind of mathematician, and a statistician!
You've already gotten an answer but for future reference, check the FAQ[^] before posting. Your answer is there too: 2.5 I added some source files I got from someone else into my project and the compiler gives the error "C1010: unexpected end of file while looking for precompiled header directive." Why?[^] --Mike-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ ---- You cannot truly appreciate Dilbert unless you've read it in the original Klingon.