[Scons-users] SharedLibrary dependency problem
Leandro Moreno
leandro.moreno at tallertechnologies.com
Thu Mar 27 15:29:02 EDT 2014
Thanks for your answers! I used this crazy variable
STATIC_AND_SHARED_OBJECTS_ARE_THE_SAME. And all work!
On Thu, Mar 27, 2014 at 2:16 PM, Michael Schlenker <msc at contact.de> wrote:
> Am 27.03.2014 18:06, schrieb Leandro Moreno:
> > 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?
> >
> Just declare your objects as SharedObject:
>
> objs = SharedObject(['yourfile1.cpp', 'yourfile2.cpp'])
> lib = SharedLibrary('mylib', objs)
>
> Michael
>
> --
> Michael Schlenker
> Software Architect
>
> CONTACT Software GmbH Tel.: +49 (421) 20153-80
> Wiener Straße 1-3 Fax: +49 (421) 20153-41
> 28359 Bremen
> http://www.contact.de/ E-Mail: msc at contact.de
>
> Sitz der Gesellschaft: Bremen
> Geschäftsführer: Karl Heinz Zachries, Ralf Holtgrefe
> Eingetragen im Handelsregister des Amtsgerichts Bremen unter HRB 13215
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> http://four.pairlist.net/mailman/listinfo/scons-users
>
--
<http://www.tallertechnologies.com>
Leandro Moreno
Intern Engineer
San Lorenzo 47, 3rd Floor, Office 5
Córdoba, Argentina
Phone: +54 351 4217888 / +54 351 4218211
Skype: letossgm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20140327/6ff12a88/attachment.htm
More information about the Scons-users
mailing list