[C++-SIG] Re: [PSA MEMBERS] Fw: the dynamic load mystery...

John Skaller skaller at maxtal.com.au
Fri Apr 17 16:10:17 CEST 1998


At 16:28 16/04/98 +0200, Konrad Hinsen wrote:

>So why is umath not linked with _numpy? First of all, that doesn't
>seem to work with some systems. 

        I needs to work 'by definition', 
at least where 'link' is interpreted 'liberally' :-)

>Second, everytging might be linked
>statically with the Python interpreter, and in that case there
>wouldn't be any dynamic library to link to. Third, the names of shared
>libraries vary between systems. 

        Yes. But I think that 'the fact that linkage is not portable'
means that ...

>The scheme I used has the enormous
>advantage of allowing client modules to use NumPy in a perfectly
>portable way, i.e. a single Setup file works for all systems and
>all ways of installing NumPy.  Well, almost :-(


       ... it isn't portable. :-)
But it still has to be done. Somehow :-(

>>         2) in general you must ensure _intentionally_ unresolved
>>             externals will be satisfied at dynamic load time
>>             by linking all dynamic libraries against dependent
>>             libraries proving these symbols
>
>That's the big problem - I don't see any way to do this in a portable
>way.

        That's not a problem. You're probably right.
So do it in a non-portable way :-) With lots of cases,
and people emailing you what worked for them. :-((
Ugly. But it isn't your fault. 

-------------------------------------------------------
John Skaller    email: skaller at maxtal.com.au
		http://www.maxtal.com.au/~skaller
		phone: 61-2-96600850
		snail: 10/1 Toxteth Rd, Glebe NSW 2037, Australia






More information about the Cplusplus-sig mailing list