[antlr-interest] Please help me! I am an newer...

xiang_yu_cn at yahoo.com.cn xiang_yu_cn at yahoo.com.cn
Tue Nov 27 00:53:25 PST 2001


Hi, all,
I met a link error when making the example of ANTLR (calc.g)
My environment is cygwin.

Anyone can help me, thanks in advance!


java -classpath ../../.. antlr.Tool calc.g
ANTLR Parser Generator   Version 2.7.1   1989-2000 jGuru.com
g++ -c CalcLexer.cpp -g -pipe -W -Wall -I/cygdrive/c/temp/temp/antlr-
2.7.1/examples/cpp/calc/../../../lib/cpp -felide-
nstructors -o CalcLexer.o
g++ -c CalcParser.cpp -g -pipe -W -Wall -I/cygdrive/c/temp/temp/antlr-
2.7.1/examples/cpp/calc/../../../lib/cpp -felide
onstructors -o CalcParser.o
g++ -c CalcTreeWalker.cpp -g -pipe -W -Wall -
I/cygdrive/c/temp/temp/antlr-
2.7.1/examples/cpp/calc/../../../lib/cpp -fe
de-constructors -o CalcTreeWalker.o
g++ -c Main.cpp -g -pipe -W -Wall -I/cygdrive/c/temp/temp/antlr-
2.7.1/examples/cpp/calc/../../../lib/cpp -felide-const
ctors -o Main.o
g++ -o calc CalcLexer.o CalcParser.o CalcTreeWalker.o Main.o -Wl,--gc-
sections -L/cygdrive/c/temp/temp/antlr-2.7.1/exa
les/cpp/calc/../../../lib/cpp/src/.libs -lantlr -Wl,-rpath -
Wl,/Tios/Language/gcc-2.95.2/lib
/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-
cygwin/bin/ld: cannot find -lantlr
collect2: ld returned 1 exit status
make: *** [calc] Error 1


 

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



More information about the antlr-interest mailing list