[C++-sig] Re: Sharing Global Singleton instances across boost.python extensions (windows & unix)

Niall Douglas s_sourceforge at nedprod.com
Sat Oct 11 06:01:01 CEST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10 Oct 2003 at 22:31, David Abrahams wrote:

> > Thing is, if you're porting to and only to very recent versions of
> > Linux there are very few non-obvious quirks nowadays.
> 
> Obviously you haven't been dealing with the same problems I've been
> having in Boost.Python.  There are definitely some very subtle things
> going on with weak symbols and templates; see
> http://www.boost.org/libs/python/doc/v2/May2002.html#shared

I'd forgotten some of those which I too have had run-ins with. Why oh 
why can't they make all symbols hidden by default and only public 
with a modifier syntaxically identical to __declspec(dllexport) so we 
can reuse our Win32 idioms?

It would require a small amount of complexity within G++ to do this, 
but the current method they have of you selecting each method 
individually is useless for Win32 compatibility :(

Cheers,
Niall





-----BEGIN PGP SIGNATURE-----
Version: idw's PGP-Frontend 4.9.6.1 / 9-2003 + PGP 8.0.2

iQA/AwUBP4eAfcEcvDLFGKbPEQKROQCg+IfzxPwEThggM3mLmJgZAv3nYRsAn25r
qlciEZFNYPILkJRbzo+kbBYP
=gFef
-----END PGP SIGNATURE-----




More information about the Cplusplus-sig mailing list