Page 1 of 2

Fatal error C1010 what is this

Posted: Thu Oct 20, 2005 2:56 am
by The dogpound
while i was doing the programing part in Visual C++ everything was going fine till i generated the code and found this:

fatal error C1010:unexpected file ending searching the precompiled heading directive

i need help so if anyone has the solution to my problem i'll be very thankful

Posted: Thu Oct 20, 2005 2:58 am
by BlackNinjaGames
Try doing a full-rebuild. That's what I do whenever this happens to me. Usually has something to do with StdAfx.cpp (or .h)

Posted: Mon Oct 24, 2005 10:21 pm
by The dogpound
(please god forgive me for this noob question) how i do a full rebuild in
Visual studio C++ 2002

Posted: Tue Oct 25, 2005 2:35 am
by afecelis
check this link about your error:

http://codeguru.earthweb.net/forum/show ... p?t=251785

for full rebuild, got to project-clean and then project-build

Posted: Wed Oct 26, 2005 3:11 am
by Guest
OK now that i did what the link i was provided it solved my C1010 problem
but something else hapenned when i generated the code around 23 errors
were found (aaaaaaaaarrrghhhh.... i'ma about to shot my PC) some body help me........

anyway i'll post the list of errors later because my vsc++ IDE is in spanish
so i have to translate them it's goin to take me a time but if anybody knows about this and can help me it woul be greate

By the way thanks to those who helped me with the C1010 problem
thanks a lot

Posted: Wed Oct 26, 2005 3:15 am
by The dogpound
the post that says guest is actually mine so i forgot to log in before posting
:shock: :shock: :shock: :shock: :!: :?: :!: :?:

Posted: Mon Oct 31, 2005 11:25 am
by The dogpound
somehow i made it to fix my recent list 23 problems (all my mistakes with programming are of syntax and gramatical errors but well that's not the point now ) but now i get the C1104 error and i specified this direction for the irrlicht.lib file C:\Irrlicht-0.12.0\Win32-Visualstudio what's the solution for this

Posted: Mon Oct 31, 2005 12:48 pm
by afecelis
which compiler are you using?

You might not have the visualstufio lib in the folder so you'd first need to compile the engine to get it created so that your app can find it.

Posted: Tue Nov 01, 2005 3:03 am
by The dogpound
where i can get a compiler for c++ 2002

also in the generate there's the option compile

but i don't know what compiler i have

Posted: Thu Nov 03, 2005 1:55 am
by The dogpound
well i did some recon the problem seems to come from the linker
because even i specified the direction for the irllicht. lib file it still points the Fatal Error LNK1104 could not open irrlicht .lib
it also says that it couldn't find the irrlicht .exe file

all this mistakes and errors are stoping me from developing my game aplication so if anybody can give me a hand i would really apreciate it

Posted: Thu Nov 03, 2005 2:06 am
by piot
stop using evil precompiled headers :P

Posted: Thu Nov 03, 2005 2:12 am
by The dogpound
the point is that i already corrected the precompiled headers deal
what should i do now


10:27 PM EDIT=well after following Piot tip i decided to re-check the precompiled headers deal it turned out that i didn't hit the aply button after
selecting the stop using precompiled headers YO piot thanks for the advice

but now all of sudden automaticaly after defenitly corretcting the precompiled headers deal
this happenned a new page called vector3d.h apeared with its on code already built
and this mistake in it ERROR C2857 the instruction #include specified in the lin commands option /ycstdafx.h in the source code file could not be openned any solution i'll try to fix this one by myself but if anybody already has the solution to this problem please tell me

10:50 PM EDIT=another problem showed up while vinculating(i did this for pure curiosity) Fatal error LNK1104:cannot open the debug\irrlicht.obj
any solution

Posted: Sun Nov 06, 2005 7:17 am
by The dogpound
got stuck ( again ) any answer for the last problem

Posted: Sun Nov 06, 2005 9:50 am
by krama757
If you are using Visual Studio, check the msdn archives for your C2857 error. Sometimes they help out, but most of the time its just a stupid error in coding that you miss.

Posted: Sun Nov 13, 2005 3:25 am
by The dogpound
i checked the msdn library and it didn't gave me any answer or solution to my actual problem plus i decided to build and compile the user interface
everything went well when generating but when i started it it said that it couldn't find the iirlicht.dll file in which derectory i should place the irrlicht.dll file