Archived

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

csxpcm

what does this error message mean please!

Recommended Posts

csxpcm    122
Dear all, I''m using MS Visual C v6. When I comile my program, I get the following message: c:\tga_loader2\glapp.cpp(194) : fatal error C1010: unexpected end of file while looking for precompiled header directive When i locate the line the error is on, i find its at the bottom of the (.cpp) implementation file. but there is no code on the last line! Ive included the correct header! Any suggestions? Any help is much appreciated!! Thanks in advance!! - Pete

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
Put

#include "stdafx.h"

at the top of your file.

Share this post


Link to post
Share on other sites
VolkerG    151
Your project uses precompiled headers. This error often happens if your .cpp file doesn''t include the according .h file (usually stdafx.h). Just put an #include "stdafx.h" before any other include statement.

Share this post


Link to post
Share on other sites