
7 Feb
2011
7 Feb
'11
6:31 a.m.
On Mon, 31 Jan 2011 07:00:50 -0800, Alexander Arhipenko <arhipjan@gmail.com> wrote:
Mostafa, unfortunately I did not completely understand scenario 2). Am I correct that you want to export function foo from B library, function bar from C library? All of them return reference to MyShape that resides in library A. Why not require B's, C's users to link library A? I guess it's possible to re-export MyShape from B and C library on gcc platform but can't be easily achived on msvc.
You're right, the correct solution is to have users of Library C link to both Library B and Library A. (I had an incorrect fear that depending on the order of linking, Library B would somehow hide Library A's symbols when they linked to Library C.) Mostafa