[Qt-interest] a question about QLibrary
Eric Clark
eclark at ara.com
Fri Dec 4 18:51:56 CET 2009
Yifei,
Did you figure this out? I left yesterday before I heard back from you. We have dealt with this type of issue in our application and came up with a solution. I could probably help you out a lot if I knew a little more about what exactly you are trying to do. Let me know if you figured it out already. If you haven't, I will send you some more information.
Thanks,
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 5:47 PM
> To: Qt Interest (qt-interest at trolltech.com)
> Subject: Re: [Qt-interest] a question about QLibrary
>
> 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
> _______________________________________________
> 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