Is it possible to export symbols of libQtGui.so in shared library of libQtGui.so
-
Hi All
I have shared library of libQtGui.so and is it possible to share symbols of in shared library using some export_list in gcc command -
@Qt-Enthusiast What do you mean? libQtGui.so should already export all needed symbols. What symbols are you talking about?
-
My question is becuase when I make
When I build static libraries of libQtGui and libQtCore CXXFLAGS -fvisibility=hidden is used for compiling each file of QtCore and QtGui. When I link this library in my final executable , then I get following
hidden symbol `_ZNK7QLayout11minimumSizeEv' is referenced by DSO linking ld: final link failed: Bad value
but , I do not get this error when I make shared library of LibQtGui.so and
I do not know what does
class Q_GUI_EXPORT QLayout does
-
@Qt-Enthusiast said in Is it possible to export symbols of libQtGui.so in shared library of libQtGui.so:
-fvisibility=hidden
Instead to try to "solve" the problem doing something really strange (putting symbols from a shared library into your static lib) you should not pass -fvisibility=hidden while building static libraries.
-
Will it make sense to remove -fvisibility=hidden globally from all files while building the static library of libQtGui.a
-
@Qt-Enthusiast I would say yes