VC++ error

From: Atmapuri (janez.makovsek_at_usa.net)
Date: 03/06/04


Date: Sat, 6 Mar 2004 13:33:20 +0100

Hi!

I am getting this:
fatal error C1010: unexpected end of file while looking for precompiled
header directive

I have added MyFile.cpp to source list of the project and MyFile.h to the
list of headers.

The header looks like this:

#ifndef CipFiltering_H
#define CipFiltering_H

#endif

And the cpp file like this:

#ifndef CipFiltering
#define CipFiltering

#endif

And the header file is included in the main.cpp

like this:

#include "CipFilters.h"

What is wrong?
(the project compiles fine, if I remove both files).

Thanks!
Atmapuri



Relevant Pages

  • Request for review: build infrastructure for Clang
    ... At BSDCan there has been a general agreement that in order to make Clang ... LLVM source code includes some generated header files. ... +// targets with assembly printers. ...
    (freebsd-arch)
  • [4/5] ieee80211: ethernet independency
    ... Makes the 802.11 layer independent of ethernet. ... /* All received frames are sent to this function. ... The first fragment contains the SNAP header and the ...
    (Linux-Kernel)
  • Handling a boolean type
    ... INN currently uses three different ways internally for handling boolean ... typedef int BOOL; ... that inclusion of that header would therefore fail if something like the ...
    (comp.unix.questions)
  • Re: best algorithm or datastructure
    ... proper header file. ... extern int fileno; ...
    (comp.programming)
  • Re: Header files included in header files
    ... or almost as bad, have incorrect header ... And if a dependency on a /header file/ ... Ask a vague question, get a vague answer. ...
    (comp.lang.c)