[Scons-users] SharedLibrary dependency problem

Michael Schlenker msc at contact.de
Thu Mar 27 13:16:03 EDT 2014


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


More information about the Scons-users mailing list