Skip to main content
gamedev.net
🔒 Locked

compile error question

Started by hello_there 3 replies 250+ views
Original Post
hello_there
hello_there
I''m making a level editor for my game using MFC. When i add my terrain class from my game project to the level editor one i get these compile error. Objects.cpp(56): fatal error C1010: unexpected end of file while looking for precompiled header directive Terrain.cpp(845): fatal error C1010: unexpected end of file while looking for precompiled header directive Can someone please tell me why and how to fix it?. There''s nothing wrong with the files they work fine in my game.
____________How could hell be worse?
Last Attacker
Last Attacker
I had that kind of problem a lot of times, all I did was look for the line where the error occured and removed illegal characters (sometimes the files on the hard-drive can get "corrupt" or somtimes things happen to it).

Or

Check where you have placed the '';'' sign. Make sure its all at the right places.

Hope this helps man!

It sounds weird but I actually had these problems.


// Last Attacker \\---=( LA )=---// LA Extreme \\

ICQ Number : 120585863

E-mail: laextr@icqmail.com

"Take delight in the Lord and He will give you your heart's desires" - Psalm 37:4My Blog
hello_there
hello_there
yeah i had a problem like that when i programmed something at home then took it to uni.

The error is the very first thing and it still happens when the file is completly empty. Is it something to do with it being an MFC application or something?
____________How could hell be worse?
Boni
Boni
make sure you put
#include "stdafx.h"  

as the first line (or before any other includes) in your Objects.cpp and Terrain.cpp files.

edit:
for any C++ source file that you add (.cpp), you need to have that line as the first line. it's the default pre-compiled header when building an MFC app.

[edited by - boni on April 16, 2004 2:54:10 AM]
hello_there
hello_there
ahhhh thanks i though i tried something like that but i guess i did it wrong. Thanks again it was realy annoying me.
____________How could hell be worse?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.