I compiled a 3rd party library (developing on Windows) to create the dll.
To my knowledge it is not dependent on any other dll, since it is built using the static libraries it needs, expat, zlib, and openssl, all of which I compiled to create the .a files. The dll creates with no errors.
The problem is the dll won't load for my Qt application.
Here is the code:
The debug returns:Qt Code:
QLibrary tqsllib2; tqsllib2.setFileName("c:/cpp/qt_projects/hrlogger_development/debug/tqsllib2.dll"); tqsllib2.load(); qDebug() << "is tqsllib2 loaded ? " << tqsllib2.isLoaded(); qDebug() << "lib load error is " << tqsllib2.errorString();To copy to clipboard, switch view to plain text mode
is tqsllib2 loaded ? false
lib load error is "Cannot load library c:/cpp/qt_projects/hrlogger_development/
debug/tqsllib2.dll: "
If I try to load a test dll using the above code, like a small one from the Windows/system32 directory, it loads fine. I realize this is not a Qt issue, but am hoping someone with more experience at this might be able to give me some suggestions as to what is going wrong.
Edit: If I point the setFileName to the original directory where the dll was created, the error message changes slightly:
lib load error is "Cannot load library c:/mingw/msys/1.0/home/wayne/tqsllib/tqs
llib2.dll: The specified module could not be found."
Bookmarks