Qt-interest Archive, February 2007
Dynamic QT Linking and static linking of one another 3rd party library
Message 1 in thread
Hello !
I have a litte problem and I don't found something in the docu.
Is it possible to Link a program dynamic with qt (Version is 4.2.2) and
also link the program static with one 3rd party library ?
Is there a solution for qmake .pro file to ?
thanks a lot for your help !
Heiko
--
[ signature omitted ]
Message 2 in thread
Am 27.02.2007, 16:37 Uhr, schrieb Heiko Steindl <heiko@xxxxxx>:
> Hello !
>
> I have a litte problem and I don't found something in the docu.
>
> Is it possible to Link a program dynamic with qt (Version is 4.2.2) and
> also link the program static with one 3rd party library ?
Sure. Just do a LIBS += -L<path_where_static_lib_resides> -l<3rdpartylib>
in your pro-file and your app will link with this lib in addition to qt.
--
[ signature omitted ]
Message 3 in thread
Thank you very much !
the problem was, that the 3rd party lib installed both versions (a
dynamic and a static lib).
I removed the dynamic one and now it links with the static version.
Thanks a lot for your help !
Thomas Mittelstaedt schrieb:
> Am 27.02.2007, 16:37 Uhr, schrieb Heiko Steindl <heiko@xxxxxx>:
>
>> Hello !
>>
>> I have a litte problem and I don't found something in the docu.
>>
>> Is it possible to Link a program dynamic with qt (Version is 4.2.2)
>> and also link the program static with one 3rd party library ?
>
> Sure. Just do a LIBS += -L<path_where_static_lib_resides> -l<3rdpartylib>
> in your pro-file and your app will link with this lib in addition to qt.
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>
--
[ signature omitted ]
Message 4 in thread
If you use gcc, and you have both static and dynamic link libraries, you
can tell the linker to use static libraries like this:
LIBS += -Wl,-Bstatic -L<path_where_static_lib_resides> -l<3rdpartylib>
-Wl,-Bdynamic
Paul.
Heiko Steindl wrote:
> Thank you very much !
>
> the problem was, that the 3rd party lib installed both versions (a
> dynamic and a static lib).
> I removed the dynamic one and now it links with the static version.
>
> Thanks a lot for your help !
>
>
> Thomas Mittelstaedt schrieb:
>> Am 27.02.2007, 16:37 Uhr, schrieb Heiko Steindl <heiko@xxxxxx>:
>>
>>> Hello !
>>>
>>> I have a litte problem and I don't found something in the docu.
>>>
>>> Is it possible to Link a program dynamic with qt (Version is 4.2.2)
>>> and also link the program static with one 3rd party library ?
>>
>> Sure. Just do a LIBS += -L<path_where_static_lib_resides>
>> -l<3rdpartylib>
>> in your pro-file and your app will link with this lib in addition to qt.
>> --
>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx
>> with "unsubscribe" in the subject or the body.
>> List archive and information: http://lists.trolltech.com/qt-interest/
>>
>>
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
--
[ signature omitted ]