Boost logo

Boost :

From: Doug Gregor (gregod_at_[hidden])
Date: 2001-04-08 20:02:37


On Sunday 08 April 2001 08:54, you wrote:
> Even with the global variable problem solved, there's the issue of all the
> bison functions not being declared static, which means they will show up
> as multiple defines in the linking of the shared library.
>
> Also, there's the problem of flex using globals :(
>

There are versions of flex and bison that have been rewritten to be more
C++-ish that are appropriately named flex++ and bison++. They are similar in
capability to flex and bison, but instead generate C++ classes. The source is
available here:

http://www.tu-darmstadt.de/ftp/programming/languages/C++/tools/flex++bison++/

I've not used the tools myself, but a colleague used them to solve the
problem with the globals.

        Doug


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk