[antlr-interest] Building Antlr 3.1.1 c-runtime with MinGW?

Jim Idle jimi at temporal-wave.com
Wed Nov 5 16:32:04 PST 2008


On Wed, 2008-11-05 at 13:59 +0100, Joost Kraaijeveld wrote:
> Hi,
> 
> Is it possible to actually compile the c-runtime using MinGW? 

Should be, but someone reported that they had to change the typedef
ANTLR3_BOOLEAN.

Personally, I would compile it with VS, then just link to the libraries
with MingW. The fix to the typedef is on my list though.

Jim

> 
> I get lots of errors that look alike, the first ones being:
> 
> make  all-am
> make[1]: Entering directory `/d/src/libantlr3c-3.1.1'
> /bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -Iinclude -Iinclude    -m32  -O2  -Wall -MT antlr3baserecognizer.lo -MD -MP -MF .deps/antlr3baserecognizer.Tpo -c -o antlr3baserecognizer.lo `test -f 'src/antlr3baserecognizer.c' || echo './'`src/antlr3baserecognizer.c
>  gcc -DHAVE_CONFIG_H -I. -Iinclude -Iinclude -m32 -O2 -Wall -MT antlr3baserecognizer.lo -MD -MP -MF .deps/antlr3baserecognizer.Tpo -c src/antlr3baserecognizer.c  -DDLL_EXPORT -DPIC -o .libs/antlr3baserecognizer.o
> In file included from include/antlr3baserecognizer.h:10,
>                  from src/antlr3baserecognizer.c:9:
> include/antlr3defs.h:132: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ANTLR3_BOOLEAN'
> include/antlr3defs.h:178: warning: ignoring #pragma warning 
> In file included from include/antlr3defs.h:388,
>                  from include/antlr3baserecognizer.h:10,
>                  from src/antlr3baserecognizer.c:9:
> include/antlr3convertutf.h:158: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'isLegalUTF8Sequence'
> In file included from include/antlr3baserecognizer.h:10,
>                  from src/antlr3baserecognizer.c:9:
> include/antlr3defs.h:487: error: expected declaration specifiers or '...' before 'ANTLR3_BOOLEAN'
> In file included from include/antlr3baserecognizer.h:11,
>                  from src/antlr3baserecognizer.c:9:
> include/antlr3exception.h:108: error: expected specifier-qualifier-list before 'ANTLR3_BOOLEAN'
> In file included from include/antlr3string.h:11,
>                  from include/antlr3input.h:13,
>                  from include/antlr3baserecognizer.h:12,
>                  from src/antlr3baserecognizer.c:9:
> 
> 
> TIA
> 



More information about the antlr-interest mailing list