Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Johnny_Blaze93

Program Error

This topic is 5956 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i always get this error when i try to compile my game: c:\program files\microsoft visual studio\rpg game thingy\rpg game thingy.cpp(293) : fatal error C1010: unexpected end of file while looking for precompiled header directive and it points to the closing brace of the main() function, any ideas?

Share this post


Link to post
Share on other sites
Advertisement
Has been answered a few weeks ago. Use the forums search function. Don't the remember the thread anymore.

Ok, one option is to disable the use of precompiled headers. The second: include "stdafx.h" in every cpp-file. For more details have a look at the other posts.

[edited by - VolkerG on June 27, 2002 5:05:44 PM]

Share this post


Link to post
Share on other sites
okay, i added stdafx.h, and it was always there, i just didnt include it... but when i do it gives me 54 errors like:


C:\Program Files\Microsoft Visual Studio\RPG GAME THINGY\RPG GAME THINGY.cpp(16) : error C2065: ''string'' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\RPG GAME THINGY\RPG GAME THINGY.cpp(16) : error C2146: syntax error : missing '')'' before identifier ''szText''
C:\Program Files\Microsoft Visual Studio\RPG GAME THINGY\RPG GAME THINGY.cpp(16) : error C2182: ''colourtext'' : illegal use of type ''void''
C:\Program Files\Microsoft Visual Studio\RPG GAME THINGY\RPG GAME THINGY.cpp(16) : error C2059: syntax error : '')''
C:\Program Files\Microsoft Visual Studio\RPG GAME THINGY\RPG GAME THINGY.cpp(17) : error C2143: syntax error : missing '';'' before ''{''

Share this post


Link to post
Share on other sites
I''m not sure if I can help you with *all* of those errors. (Those might be some mistakes you made). But anyway, if your program isn''t very large, then I''d suggest just doing away with stdafx.h. Basically the reason people use it is to make their stuff compile faster. For a small project you don''t need it... I think you can turn it off by going to Project->Settings->.. then, C/C++ -> Precompiled headers -> Not using precompiled headers.

At least that''s what you do for VC++ 6.. I dunno about .NET

Rajan

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!