I found a problem, could be a bug.
My project "son" is a QT based project, which relies on "father" (which is also a QT based project )
(Yes, as you might have guessed out, I'd love "son" inherit some .ui-built-classes of "father" .
Then, I built "father" into a static library, we may call it "libfather.a" .
When I tried to build "son", it could be a bug that the linked library sequence are like
Code: Select all
"-L/usr/lib -L../father/Debug -lfather -lQtGui -lQtCore -lpthread "
So, there might be a library link sequence problem here.
Can you please ensure those "system libraries" are linked first, at the very very beginning of the library link sequence???
Say,
Code: Select all
"-L/usr/lib -L../father/Debug -lQtGui -lQtCore -lpthread -lfather"
The error messages I obtained are something like:
Code: Select all
undefined reference to `....'
Finally, if I changed "father" form static library to an executable project, I can run "father" correctly, with Qt GUI displayed perfectly.
So, any suggestions?
Best Regards
JIA