Compiling C and C++
- From: "Greg Warren" <Greg Warren@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 17 Jun 2005 18:51:01 -0700
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?
.
- Follow-Ups:
- Re: Compiling C and C++
- From: Carl Daniel [VC++ MVP]
- Re: Compiling C and C++
- Prev by Date: Re: Pinning Pointers with __pin in Managed C++
- Next by Date: Re: Compiling C and C++
- Previous by thread: templates in mixed compilands in VC 7.1
- Next by thread: Re: Compiling C and C++
- Index(es):