[Scons-users] SharedLibrary dependency problem
Dirk Bächle
tshortik at gmx.de
Thu Mar 27 13:22:37 EDT 2014
Hi Leandro,
On 27.03.2014 18:06, Leandro Moreno wrote:
> Hello SCons guys!
>
> I have a problem with SharedLibrary. Let me tell you about it.
>
> I have 2 components. A and B. Those components have one dependency in
> common. Lets call it C.
>
> Now, I create a Object with C.
> I wanna A and B depends C.
>
> But, If I do this. There's a SCons error. This error says:
>
> scons: ***
> [build/board-games/games/tictactoe/libboard-game-ttt-referee.so]
> Source file: build/board-games/games/tictactoe/tictactoe_proxy.o is
> static and is not compatible with shared target:
> build/board-games/games/tictactoe/libboard-game-ttt-referee.so
>
> How can I do this correctly? Is there a "dynamic" object or something
> like that?
>
my solution would be to create a StaticLibrary from your source(s) C,
then link both of your shared libs against this static lib.
Hope this works (untested and from the top of my head).
Best regards,
Dirk
More information about the Scons-users
mailing list