[antlr-interest] how to generate C++ file

J.R Karthikeyan jrk1987 at yahoo.co.in
Sun Aug 22 12:52:10 PDT 2010


Hi Stuart,

  Thanks Stuart. That works for me. Now it is compiling perfectly fine.

Thanks,
Jrk



________________________________
From: Stuart Dootson <stuart.dootson at gmail.com>
To: J.R Karthikeyan <jrk1987 at yahoo.co.in>
Cc: antlr-interest <antlr-interest at antlr.org>
Sent: Sun, 22 August, 2010 4:26:50 AM
Subject: Re: [antlr-interest] how to generate C++ file




On Sun, Aug 22, 2010 at 4:32 AM, J.R Karthikeyan <jrk1987 at yahoo.co.in> wrote:

Hi,
>
> Just want to make sure that , this means that I can't use antlr with visul
>studio 2005. Because my entire project is in visual studio 2005 and this parser
>is going to be one of the module for that project. So can you please let me 
know
>if I can use this with visual studio 2005.
>
>
>Thanks,
>Jrk
>
>
>
>

jrk - you can use Antlr with Visual Studio - I know, I've done so in the past. 
Your compiler errors are coming because the default options applied to a VS C++ 
project include pre-compiled header support.

The easiest way around this is to tell VS that your Antlr generated files don't 
use the pre-compiled headers. To do that, select the Antlr source files in the 
Solution Explorer, then right-click and select Properties. After that, select 
the C++->Precompiled Headers property page and then in the 'Create/Use 
Precompiled Header" property, select the option that says something like "Not 
using precompiled headers".

Stuart




More information about the antlr-interest mailing list