Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / June 2005

Tip: Looking for answers? Try searching our database.

Compiling C and C++

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Greg Warren - 18 Jun 2005 02:51 GMT
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?
Carl Daniel [VC++ MVP] - 18 Jun 2005 04:19 GMT
> 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
[quoted text clipped - 3 lines]
> 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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.