[antlr-interest] Solaris - Antlr 274 - GCC link error while compiling static (C++ generated code)

Jean-Claude Meilland jean-claude.meilland at experian-scorex.com
Wed Jun 8 07:30:51 PDT 2005


Hey,

Thanks for the answer.

Sorry for bothering I found my error I was missing
/usr/local/lib/gcc/../libgcc_eh.a.

Cheers,

J.Claude.
 

> -----Original Message-----
> From: Ric Klaren [mailto:ric.klaren at gmail.com]
> Sent: Tuesday, June 07, 2005 7:29 PM
> To: Jean-Claude Meilland
> Cc: antlr-interest at antlr.org
> Subject: Re: [antlr-interest] Solaris - Antlr 274 - GCC link error
while
> compiling static (C++ generated code)
> 
> Jean-Claude Meilland wrote:
> > I'm trying to compile the C++ code generated by ANTLR 2.7.4 from my
> > grammar in static mode. I'm working on Solaris using GCC compiler
and
> > linker.
> >
> > I'm getting a weird link error:
> > Undefined			first referenced
> >  symbol  			    in file
> > _Unwind_Resume                      ./app/release/fmblex.o  (symbol
> > belongs to implicit dependency /usr/local/lib/libgcc_s.so.1)
> >
> > So here are my questions:
> > 1) Is there anything to do to with the antrl tool or in a header
file to
> > specify we want to generate c++ code that links in static?
> >
> > 2) Is there a specific option to use with GCC for antrl generated
source
> > code to link in static lib mode?
> 
> Antlr 2.7.4 should function without a glitch on solaris.
_Unwind_Resume
> is a symbol unrelated to antlr's support library and generated code.
> 
> Information on how you build/link your project (and how you built
antlr)
> could be helpfull.
> 
> Cheers,
> 
> Ric


More information about the antlr-interest mailing list