Raphael fenix@club-internet.fr writes:
Alexandre, instead using copy of the sames files can we use a static library for sharing this code ?
I'm afraid not, we can't create a separate static library every time we need to share some code between dlls, it doesn't scale.
On Thu, 13 May 2004 21:05:13 -0700, Alexandre Julliard wrote:
I'm afraid not, we can't create a separate static library every time we need to share some code between dlls, it doesn't scale.
How does it not scale? Surely copying code is worse from a scalability perspective?
Mike Hearn wrote:
On Thu, 13 May 2004 21:05:13 -0700, Alexandre Julliard wrote:
I'm afraid not, we can't create a separate static library every time we need to share some code between dlls, it doesn't scale.
How does it not scale? Surely copying code is worse from a scalability perspective?
What about building a static lib and linking it into both shared libs ?
Regards
DOminik
Mike Hearn mh@codeweavers.com writes:
How does it not scale? Surely copying code is worse from a scalability perspective?
It doesn't scale because if you have n dlls you potentially need n^2 static libraries to share code. Obviously we won't need all the combinations, but even a small fraction of that is going to create a big mess. It needs a *very* good reason to create a new library, and if it's just for sharing a couple of structure dumping functions it's not worth it.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Friday 14 May 2004 20:06, Alexandre Julliard wrote:
Mike Hearn mh@codeweavers.com writes:
How does it not scale? Surely copying code is worse from a scalability perspective?
It doesn't scale because if you have n dlls you potentially need n^2 static libraries to share code. Obviously we won't need all the combinations, but even a small fraction of that is going to create a big mess. It needs a *very* good reason to create a new library, and if it's just for sharing a couple of structure dumping functions it's not worth it.
You are right, but it this case i will copy this 2 sources for 5-6 dlls :(
Regards, Raphael
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Friday 14 May 2004 06:05, Alexandre Julliard wrote:
Raphael fenix@club-internet.fr writes:
Alexandre, instead using copy of the sames files can we use a static library for sharing this code ?
I'm afraid not, we can't create a separate static library every time we need to share some code between dlls, it doesn't scale.
Ok, but it's really boring :(
Regards, Raphael