DLL problems
-
wrote on 19 Oct 2010, 13:42 last edited by
I've created a shared library using Qt Creator( added QtCore and QtGui support ) but when I try to use this dll( I create an instance of a class from that dll ) into another app I'm getting app.exe exited with code -1073741515 at runtime and I don't know what I'm doing wrong.
I added in my app .pro file the path to the dll:
LIBS += "E:\Sorin\TestingQt\GUIComponents-build-desktop\debug\GUIComponents.dll" -
wrote on 19 Oct 2010, 14:38 last edited by
If I'm adding the .dll to my folder app it's working but when I'm specifying the path to it I'm getting the error form above :(
-
wrote on 19 Oct 2010, 14:43 last edited by
Hi,
I don't think that in your executable the specified path of the DLL will be used. So you should store the DLL together with the executable, or copy it in a directory contained in your PATH environment variable.
Tony.
-
wrote on 19 Oct 2010, 14:47 last edited by
yes, that's the problem, the exe file doesn't know were to look for my dll, LIBS += path is used only at compile time. Thanks!
-
wrote on 19 Oct 2010, 15:10 last edited by
If you're using Qt Creator, you can modify the PATH to use in the Run environment, adding the path to your DLLs there.
2/5