[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: flex-2.5.23 & C++: symbols multiply defined
From: |
John Millaway |
Subject: |
Re: flex-2.5.23 & C++: symbols multiply defined |
Date: |
Sat, 23 Nov 2002 15:16:51 -0500 (EST) |
> > > I've just installed flex-2.5.23 for use generating C++ scanners with
> > > g++-3.2, and I've come across the following problem.
> > >
> > > I have two flex++ scanners linked into a single executable. They use
> > > different code prefixes: %option prefix="X" and %option prefix="Y".
> > > However, it seems the prefix doesn't affect the definitions of
> > > yyrealloc(), yyfree(), yyalloc() or yylex_destroy(). These functions are
> > > defined in the C++ files of both scanners. The result, predictably, is
> > > linker errors: ld: fatal: symbol `yyrealloc(void*, unsigned)' is
> > > multiply-defined (etc.).
> > >
> > > Is there a way to correct this problem, either by applying the code
> > > prefix to these functions or by moving them into the *FlexLexer class
> > > generated?
This bug has been fixed and will appear in the next revision. Thanks
for reporting it! -John