[antlr-interest] using antlr with C++

avinash_kondagunta avinash_kondagunta at yahoo.com
Sat Oct 11 17:44:46 PDT 2003


hi
I have just started using antlr recently. I was just trying to compile
ANTLR for C++. When i tried building the runtime, I put in this
command in the directory in which antlr was installed:
/configure --prefix=/usr/local
then i typed make, which generated a lot of errors. I was just
wondering if someone could help me resolve these errors. 

[avinash at linux1 antlr-2.7.2]$ make
=============================
Making dependencies...
=============================
make[1]: Entering directory `/home/avinash/antlr/antlr-2.7.2/antlr'
make[2]: Entering directory
`/home/avinash/antlr/antlr-2.7.2/antlr/preprocessor'make[2]: Leaving
directory `/home/avinash/antlr/antlr-2.7.2/antlr/preprocessor'
make[2]: Entering directory
`/home/avinash/antlr/antlr-2.7.2/antlr/actions'
make[3]: Entering directory
`/home/avinash/antlr/antlr-2.7.2/antlr/actions/java'make[3]: Leaving
directory `/home/avinash/antlr/antlr-2.7.2/antlr/actions/java'
make[3]: Entering directory
`/home/avinash/antlr/antlr-2.7.2/antlr/actions/cpp'
make[3]: Leaving directory
`/home/avinash/antlr/antlr-2.7.2/antlr/actions/cpp'
make[2]: Leaving directory `/home/avinash/antlr/antlr-2.7.2/antlr/actions'
make[2]: Entering directory
`/home/avinash/antlr/antlr-2.7.2/antlr/collections'
make[3]: Entering directory
`/home/avinash/antlr/antlr-2.7.2/antlr/collections/impl'
make[3]: Leaving directory
`/home/avinash/antlr/antlr-2.7.2/antlr/collections/impl'
make[2]: Leaving directory
`/home/avinash/antlr/antlr-2.7.2/antlr/collections'
make[2]: Entering directory `/home/avinash/antlr/antlr-2.7.2/antlr/debug'
make[3]: Entering directory
`/home/avinash/antlr/antlr-2.7.2/antlr/debug/misc'
make[3]: Leaving directory
`/home/avinash/antlr/antlr-2.7.2/antlr/debug/misc'
make[2]: Leaving directory `/home/avinash/antlr/antlr-2.7.2/antlr/debug'
make[1]: Leaving directory `/home/avinash/antlr/antlr-2.7.2/antlr'
make[1]: Entering directory `/home/avinash/antlr/antlr-2.7.2/lib'
make[2]: Entering directory `/home/avinash/antlr/antlr-2.7.2/lib/cpp'
make[3]: Entering directory `/home/avinash/antlr/antlr-2.7.2/lib/cpp/src'
make[3]: Leaving directory `/home/avinash/antlr/antlr-2.7.2/lib/cpp/src'
make[3]: Entering directory
`/home/avinash/antlr/antlr-2.7.2/lib/cpp/antlr'
make[3]: Leaving directory `/home/avinash/antlr/antlr-2.7.2/lib/cpp/antlr'
make[2]: Leaving directory `/home/avinash/antlr/antlr-2.7.2/lib/cpp'
make[1]: Leaving directory `/home/avinash/antlr/antlr-2.7.2/lib'
=============================
Making antlr ...
=============================
make[1]: Entering directory `/home/avinash/antlr/antlr-2.7.2/antlr'
java -cp /home/avinash/antlr/antlr-2.7.2/antlrall.jar antlr.Tool   antlr.g
Exception in thread "main" java.lang.NoClassDefFoundError: antlr.Tool
   at 0x40268e17: java.lang.Throwable.Throwable(java.lang.String)
(/usr/lib/./libgcj.so.3)
   at 0x4025bc8e: java.lang.Error.Error(java.lang.String)
(/usr/lib/./libgcj.so.3)
   at 0x4025d6b6:
java.lang.LinkageError.LinkageError(java.lang.String)
(/usr/lib/./libgcj.so.3)
   at 0x4025eb36:
java.lang.NoClassDefFoundError.NoClassDefFoundError(java.lang.String)
(/usr/lib/./libgcj.so.3)
   at 0x402ad075: gnu.gcj.runtime.FirstThread.run()
(/usr/lib/./libgcj.so.3)
   at 0x4024fc4c: _Jv_ThreadRun(java.lang.Thread) (/usr/lib/./libgcj.so.3)
   at 0x4021c8ac: _Jv_RunMain(java.lang.Class, byte const, int, byte
const, boolean) (/usr/lib/./libgcj.so.3)
   at 0x08048910: ?? (??:0)
   at 0x42015504: __libc_start_main (/lib/tls/libc.so.6)
   at 0x080486c1: ?? (??:0)
make[1]: *** [.antlr.g] Error 1
make[1]: Leaving directory `/home/avinash/antlr/antlr-2.7.2/antlr'
make: *** [su bdirs] Error 2
 


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list