<t>problems while compiling c++ antlr</t>
1 posts in topic
Flat View  Flat View

Posted By:   kumaravel_Pandurangan
Posted On:   Tuesday, September 11, 2001 06:08 AM

I have installed and configured antlr for c++.
I have set Main.cpp found in examples as my MyParser.cpp while compiling.
ie., c++ -c Main.cpp -I/usr/local/include

I have problems whem linking is done with
c++ -o MyExec -L/usr/local/lib -lantlr
I gave the linking as
c++ -o Main.o -L/usr/local/lib -lantlr
But I am not getting parser output.
Am I in the right direction?.
Any suggestion appreciated.

Re: problems while compiling c++ antlr

Posted By:   Ric_Klaren  
Posted On:   Wednesday, September 26, 2001 02:40 AM


c++ -o programname Main.o -L/usr/local/lib -lantlr

This would create binary with name 'programname'. Consisting
of Main.o and the antlr runtime see the manpages
of your compiler for details.

I'm assuming your using gcc with other compilers
you might have to use ld for or something similar
for this step.

About | Sitemap | Contact