The bad thing is that pkg-config puts the order of linking exactly in the order
which test2 is in
which means the root object is last in the chain.
> On 4 Sep 2018, at 08:56, Andreas Fink wrote:
>
>
> Here is a simple test case illustrating the problem
>
> TestObject4 inherits from
Here is a simple test case illustrating the problem
TestObject4 inherits from TestObjec3 inherits from TestObject2 inherits from
TestObject1
All testobjects are compiled into a shared library
do a make ; make install
and then run test1, test2, test3, test4 binaries.
They all run the same