[antlr-interest] newbie: can't make c target in mingw/MSYS

Jim Idle jimi at temporal-wave.com
Thu Oct 11 09:00:26 PDT 2007


I have never tried building it with Mingw. Cygwin works fine. It would seem
that configure could not discover any types from your headers and so on.
Either that or something more subtle went wrong. Did you run the build just
as it says on the wiki?

To be honests, I have never had much success with mingw - is there any
particular reason that you need this, given that there is cygwin and also a
free MS compiler within the .Net framework?

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Jorge Fuente-Alba
> Sent: Wednesday, October 10, 2007 11:05 PM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] newbie: can't make c target in mingw/MSYS
> 
> Hi.
> Just discovered Antlr and then Antlrworks, tried defining some grammars
> and tested them and flipped out.
> Decided to try the C target in my C   project, found out I needed the C
> static lib.
> 
> I downloaded the latest snapshot (libantlr3c-3.0.1.tar.gz) and tried to
> build the static lib. Configure script seemed to go fine, ending with
> "configure: exit 0".
> Then, during compile, gcc aborts with a long list of errors, starting
> with:
> 
> In file included from include/antlr3baserecognizer.h:8,
>                 from src/antlr3baserecognizer.c:7:
> include/antlr3defs.h:82: error: syntax error before "ANTLR3_INT8"
> include/antlr3defs.h:82: warning: data definition has no type or
> storage class
> include/antlr3defs.h:83: error: syntax error before "ANTLR3_INT16"
> include/antlr3defs.h:83: warning: data definition has no type or
> storage class
> include/antlr3defs.h:90: error: syntax error before "ANTLR3_UINT8"
> include/antlr3defs.h:90: warning: data definition has no type or
> storage class
> include/antlr3defs.h:91: error: syntax error before "ANTLR3_UINT16"
> include/antlr3defs.h:91: warning: data definition has no type or
> storage class
> In file included from include/antlr3baserecognizer.h:8,
>                 from src/antlr3baserecognizer.c:7:
> include/antlr3defs.h:288: error: syntax error before "inc"
> include/antlr3defs.h:292: error: syntax error before "fileName"
> ----------8<---snip-----8<--------
> 
> couldn't find any prebuilt binaries for antlr v3 under mingw either.
> halp? seems people are using it happily so I must have done something
> wrong.
> 
> GCC 3.4.5, binutils 2.17.50, MSYS 1.0.10, libantlr3c-3.0.1
> 
> Descubre el poder latino en el Mes de la Hispanidad
> http://www.starmedia.com/noticias/especiales/hispanos.html
> 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.488 / Virus Database: 269.14.7/1062 - Release Date:
> 10/10/2007 5:11 PM
> 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.488 / Virus Database: 269.14.7/1062 - Release Date: 10/10/2007
5:11 PM
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20071011/ba6ff8f8/attachment-0001.html 


More information about the antlr-interest mailing list