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

Jorge Fuente-Alba the_madman at latinmail.com
Wed Oct 10 23:05:24 PDT 2007


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


More information about the antlr-interest mailing list