Archived

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

VC++ error....Help!

This topic is 6280 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

Hi, I''m a Java programmer, and I''m starting to get into c++ more heavily now and I''ve encountered an error I''m not really sure how to fix it (in M$ vc++), so here it is: "c:\program files\microsoft visual studio\myprojects\gltest\gltest.cpp(397) : fatal error C1010: unexpected end of file while looking for precompiled header directive" Any help would be greatly appreciated. Thanks in advance. JP. ============================= a wise man once said.... ============================= www.thejpsystem.com

Share this post


Link to post
Share on other sites
You''ve set up your project to use precompiled headers. When you do that, you have to include "stdafx.h" in each source file.

If you''re 100% sure that you don''t need anything from the precompiled header, go into project, settings, find the source file in the list to the left, and go to the C/C++ tab. Select ''Precompiled Headers'' in category, then select ''not using precompiled headers''. Although I normally only use this option for COM interface definitions.

Share this post


Link to post
Share on other sites