Boost logo

Boost :

From: Jeremy Siek (jsiek_at_[hidden])
Date: 2001-04-08 12:57:40


I don't know how to setup flex/bison to make it possible to create two
parser instances without having multiply defined symbols. If anyone knows
how to do this, I'm all ears.

However, the graphviz stuff is under construction, not released yet, so
there's really no need for you to include the libbgl-viz.so in the debian
package.

Cheers,
Jeremy

On Sun, 8 Apr 2001 raphael.bossek_at_[hidden] wrote:

raphae> hi all,
raphae>
raphae> I'm working at the moment on a Debian GNU/Linux package for Boost.org
raphae> libraries and have had to realise that it is not possible to build a
raphae> shared library of GRAPH because of multiple definitions of members
raphae> comming from namespace graphviz! The graphviz_parserver.cpp file will
raphae> be compiled twice with different GRAPHVIZ_GRAPH values so
raphae> graphviz_graph_parser.o (GRAPHVIZ_GRAPH=boost::GraphvizGraph) and
raphae> graphviz_digraph_parser.o (GRAPHVIZ_GRAPH=boost::GraphvizDigraph) are
raphae> created. Because this two object files are linked together to one
raphae> library (static or shared) and the GRAPHVIZ_GRAPH value does not
raphae> influence the namespace graphviz from graphviz_parser.cpp all "global"
raphae> members defined within the namespace graphviz exist twice for the
raphae> library and the linker breaks!
raphae> The problem can be seen while compiling a shared library using the
raphae> follwing call:
raphae>
raphae> STATIC_OBJS = static/graphviz_lex.o static/graphviz_digraph_parser.o
raphae> static/graphviz_graph_parser.o
raphae>
raphae> libbgl-viz.so:
raphae> $(subst static,dynamic,$(STATIC_OBJS))
raphae> $(CXX) -shared -Wl,-soname -Wl,$@.$(GRAPH_SONAME_VERSION) -o
raphae> $@.$(GRAPH_SONAME_VERSION) $^
raphae> ln -s $@.$(GRAPH_SONAME_VERSION) $@
raphae>
raphae> --
raphae> Raphael Bossek
raphae>
raphae>
raphae> To unsubscribe, send email to: <mailto:boost-unsubscribe_at_[hidden]>
raphae>
raphae>
raphae> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
raphae>
raphae>
raphae>

----------------------------------------------------------------------
 Jeremy Siek www: http://www.lsc.nd.edu/~jsiek/
 Ph.D. Candidate email: jsiek_at_[hidden]
 Univ. of Notre Dame work phone: (219) 631-3906
----------------------------------------------------------------------


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