Why can't I compile ANTLR generate CPP file in VC++ that support MFC
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Khoa_Nguyen
Posted On:   Monday, May 28, 2001 12:48 PM

I used ANTLR to generate CPP files and I used VC++ 6.0 to compile them. With Win32 Console Project, I compiled and ran them correctly. But in other Projects that support MFC (MFC Application Wizard or Win32 Console that support MFC) I can't compile 2 files MyParser.cpp and MyLexer.cpp with error "unexpected end of file while looking for precompiled header directive".
I'm looking forward to hearing your advices.Thanks a lot.
Khoa Nguyen

Re: Why can't I compile ANTLR generate CPP file in VC++ that support MFC

Posted By:   Ciprian_Miclaus  
Posted On:   Friday, June 1, 2001 10:32 AM

Hello!
That's not ANTLR's fault at all. Just go to Project Settings, c/c++ tab, Project Option textbox and remove the option /Yu"stdafx.h"
It'll work afterwards.
Cheers,
Ciprian Miclaus.
About | Sitemap | Contact