[Qt-interest] a question about QLibrary
Yifei Li
yifli at mtu.edu
Fri Dec 4 00:46:42 CET 2009
Eric,
B as a dynamic library is linked to A at compile-time.
Yifei
----- Original Message -----
From: "Eric Clark" <eclark at ara.com>
To: "Qt Interest (qt-interest at trolltech.com)" <qt-interest at trolltech.com>
Sent: Thursday, December 3, 2009 5:32:02 PM GMT -05:00 US/Canada Eastern
Subject: Re: [Qt-interest] a question about QLibrary
Yifei,
How does A depend on B? Is it compile-time linked? Or does A load B dynamically at runtime?
Eric
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> bounces at trolltech.com] On Behalf Of Yifei Li
> Sent: Thursday, December 03, 2009 4:04 PM
> To: qt-interest
> Subject: Re: [Qt-interest] a question about QLibrary
>
> Hi,
>
> I tried to mannually load B.dll using QLibrary and that solved my
> problem.
>
> So does that mean there's no way to load a dll that depends on another
> dll at runtime without first loading its dependents?
>
> Can anyone give me an answer? Thanks
>
> Yifei
> ----- Original Message -----
> From: "Yifei Li" <yifli at mtu.edu>
> To: "qt-interest" <qt-interest at trolltech.com>
> Sent: Thursday, December 3, 2009 4:39:02 PM GMT -05:00 US/Canada
> Eastern
> Subject: [Qt-interest] a question about QLibrary
>
> Hi all,
>
> Suppose I have two dlls : A.dll and B.dll. A.dll is dependent on
> B.dll.
>
> I failed to load A.dll into my app using QLibrary, the error message is
> :
> can not load library A.dll: (B.dll: can not open shared object file: No
> such file or directory)
>
>
> I tried to put B.dll in the same directory ad A.dll, also tried putting
> B.dll in the same directory as my application, but still got the same
> error message.
>
> So can anyone tell me the correct way to load a dll that depends on
> another dll at run-time?
>
> Thanks
>
> Yifei
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list