[Interest] qmake, executable & static libs...
igor.mironchik at gmail.com
Thu Jun 18 08:24:38 CEST 2015
I'm porting Qt 5 application to Linux and ran into a problem of linking.
This application depends on two external static libs (let's say libs A
and B). But this libs is in the tree of the project.
And this project depends on two yet internal static libs (let's say libs
C and D). Libs C and D depends on libs A and B.
All static libs creates successfully.
But executable can't link. I have added all 4 static libs ( A,B,C,D ) to
the project of executable ( link rules, pretarget deps...)
And ld says when linking executable that in static lib C there are
undefined references to functions and methods from static lib A.
What should I do in .pro files to solve this problem.
P.S. On windows with MSVC linking is successful.
More information about the Interest