[antlr-interest] can't 'make' (2.7.5) & can't link (2.7.1)

Ange Albertini AngeAlbertini at free.fr
Wed Jul 6 05:41:25 PDT 2005


Hello,

I've tried 2 versions of ANTLR just in case.

the 2.7.5 "configure" script just works fine (i decompress antlr-2.7.5
zip in a new dir, under MSYS)

> $ make
> d:\dev\compile\mingw\bin\make.exe: *** No rule to make target `/home/Michiyo/antlr-2.7.5/scripts/../antlr/Makefile.in', needed by `Makefile'.  Stop.
I tried modifiying the paths just in case the ".." is making a
problem. still a similar problem

> $ make
> d:\dev\compile\mingw\bin\make.exe: *** No rule to make target `/home/Michiyo/antlr-2.7.5/./Makefile.in', needed by `Makefile'.  Stop.

before, with 2.7.1 :
 I've  been trying to link my own ANTLR-based project, then any of the
 Cpp examples shipped with the 2.7.1 zip.

 Compiling  filter  under Msys (gcc 3.4.2) . I compiled my own library
 using MSYS, configure, make. I get such results (

> T.o(.text+0x160):T.cpp: undefined reference to `antlr::CharBuffer::CharBuffer(std::istream&)'
> T.o(.text+0x1ac):T.cpp: undefined reference to `antlr::CharScanner::CharScanner(antlr::InputBuffer*, bool)'
> ...
> 
> command line, with manual compilation :
> g++ -o test.exe Test.o T.o -lantlr -LD:\Dev\Tools\antlr\275\lib -LD:\Dev\Compile\Mingw\lib
> 
> D:\Dev\Tools\antlr\275\lib/libantlr.a(MismatchedCharException.o)(.text+0xe7d):MismatchedCharException.cpp: undefined reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)'
> D:\Dev\Tools\antlr\275\lib/libantlr.a(MismatchedCharException.o)(.text+0xf97):MismatchedCharException.cpp: undefined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
> ....

In all cases, I'm stuck.
I'll really appreciate hints or help.

Best regards, Ange



More information about the antlr-interest mailing list