Usenet.com

www.Usenet.com

Group Index

Comp Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

antlr-2.7.2 under Linux



I'm trying to compile antlr-2.7.2 under Red Hat 7.1 with
j2sdk1.4.2_01. I modified Config.make.in to include CLASSPATH:

: [EMAIL PROTECTED] scripts; diff Config.make.in Config.make.in.bak 
27c27
< ANTLR    = $(JAVA) -cp $(CLASSPATH):$(TOPDIR)/antlrall.jar antlr.Tool
---
> ANTLR    = $(JAVA) -cp $(TOPDIR)/antlrall.jar antlr.Tool
29c29
< ANTLR_BOOTSTRAP = $(JAVA) -cp $(CLASSPATH):@BOOTSTRAP_JAR@ antlr.Tool
---
> ANTLR_BOOTSTRAP = $(JAVA) -cp @BOOTSTRAP_JAR@ antlr.Tool

However after running configure and make I get:


make[4]: Entering directory `/usr/petter/to-cd/antlr-2.7.2/lib/cpp/src'
Building ANTLRUtil.o
In file included from ANTLRUtil.cpp:9:
../antlr/IOException.hpp:25: syntax error before `;'
../antlr/IOException.hpp:27: parse error before `&'
../antlr/IOException.hpp:30: missing ';' before right brace
../antlr/IOException.hpp:32: ISO C++ forbids defining types within 
return type
../antlr/IOException.hpp:32: semicolon missing after declaration of 
`class antlr::IOException'
../antlr/IOException.hpp: In function `int antlr::IOException (const 
string &)':
....

Have anybody sucessfully built ANTLR 2.7.2 under Linux?  Or is ANTLR
becoming a Windows only distribution?

Petter
-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?



<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.