Re: Compiling C and C++
- From: "Carl Daniel [VC++ MVP]" <cpdaniel_remove_this_and_nospam@xxxxxxxxxxxxxxx>
- Date: Fri, 17 Jun 2005 20:19:17 -0700
Greg Warren wrote:
> I am working on a language project and am using flex to generate a
> scanner . The output of flex is a C file, lex.yy.c I want to use
> classes (C++) for all other phases of the project. When I compile
> the lex.yy.c I get an error: - C1010 unexpected end of file while
> looking for precompiled header directive. When I include stdafx.h I
> get an error: C1853 Debug/flextest.pch is not a precompiled header
> file created with this compiler. What am I doing wrong?
You need to make your stdafx.h compatible with a C compiland, OR disable
precompiled headers for that file, the latter being the more practical
solution, I'd expect.
-cd
.
- References:
- Compiling C and C++
- From: Greg Warren
- Compiling C and C++
- Prev by Date: Compiling C and C++
- Next by Date: Re: Pinning Pointers with __pin in Managed C++
- Previous by thread: Compiling C and C++
- Index(es):
Relevant Pages
|