Follow-up question: Re: [lug] g++ question: dynamic casts?

D. Stimits stimits at idcomm.com
Thu Jan 31 11:42:54 MST 2002


Tkil wrote:
> 
> >>>>> "DS" == D Stimits <stimits at idcomm.com> writes:
> 
> DS> But of course if you are releasing binary packages, that isn't a
> DS> problem.
> 
> sadly, this isn't a true statement for C++, for all the reasons that
> this thread has been about.  specifically, the ABI gives the interface
> between programs and /usr/lib/libstdc++ ... which is built by a
> particular compiler.

In the case of adding compat libs, it is possible within human effort.
Try having a basic person add 3 or so compilers on the same machien
without having them step on each other...quite a different story. In
this case, compat might require glibc, which is of course also a can of
worms...but if the end user needs to have multiple glibc versions
available for using a program, they will also be needed before one can
even attempt a proper install of multiple compilers. So I don't suggest
that binary-only is without headaches, but I do suggest requiring
multiple compilers is the pot of pain at the end of the rainbow.

D. Stimits, stimits at idcomm.com

> 
> mozilla ran into this problem; for a while, i had to make a manual
> symlink to the proper library.  i'm not sure how they fixed it, if
> ever; one possibility is to ship the c++ libraries with your package
> as a part of the binary build, and install it into a private library
> area.
> 
> either way, it's a bit of a mess.  as Tom pointed out, however, there
> should be some light at the end of the tunnel, with the 3.0 and higher
> releases supporting a stable, standard, cross-platform ABI.
> 
> t.
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug



More information about the LUG mailing list