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

Ric Klaren klaren at cs.utwente.nl
Tue Nov 27 01:29:40 PST 2001

On Tue, Nov 27, 2001 at 08:53:25AM -0000, xiang_yu_cn at yahoo.com.cn wrote:
> I met a link error when making the example of ANTLR (calc.g)
> My environment is cygwin.

> 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

It seems you did not compile the runtime library. Also you seem to be using
some compile time options that only make sense in my setup.

    ---- Ric Klaren ----- klaren at cs.utwente.nl ----- +31 53 4893722  ----
 Why don't we just invite them to dinner and massacre them all when they're
  drunk? You heard the man. There's seven hundred thousand of them. Ah? ..
           So it'd have to be something simple with pasta, then.
                 From: Interesting Times by Terry Pratchet


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

More information about the antlr-interest mailing list