Click to See Complete Forum and Search --> : error: C1010


Eliseu_CEL
December 22nd, 2005, 03:22 PM
I have a C++ Visual Project, made in Visual Studio C++ .NET.

I would like to know why this error: C1010 occurr in my file "linhas2.cpp" (it is attached) even I am using "StdAfx.h" in the right path and <mscorlib.dll> as well.

The error:

PDASources\linhas2.cpp(591) : fatal error C1010: unexpected end of file while looking for precompiled header directive



The Code:


#include "..\StdAfx.h"
#include "..\PDAIncludes\linhas2.h"
//#include "StdAfx.h"
#include "..\PDAIncludes\incDefs.h"
#include "..\PDAIncludes\cvang.h"
#include "..\PDAIncludes\incWin.h"
#include "..\PDAIncludes\unidades.h"
#include "..\PDAIncludes\Projecao.h"
#include "..\PDAIncludes\mne.h"

#using <mscorlib.dll>

Eliseu_CEL
December 23rd, 2005, 08:25 AM
In Portuguese: Apenas mudei #include "..\StdAfx.h" para #include <StdAfx.h> e funcionou - o erro desapareceu. Estranho pois o path anterior ( "..\" ) estava correto....

In English: I just have chanched #include "..\StdAfx.h" for #include <StdAfx.h> and worked all right - the error desappear. For it is strange because the path ( "..\" ) is right, the file is there....