I have a Qt application , app.exe . I want to link this app.exe to a dll, projdll.dll dynamically. How do I do that?
Here's the code in app.pro :
Code:
LIBS += ./include/projdll.lib
Printable View
I have a Qt application , app.exe . I want to link this app.exe to a dll, projdll.dll dynamically. How do I do that?
Here's the code in app.pro :
Code:
LIBS += ./include/projdll.lib
Can you be a bit more specific?
Do you want to know how DLL are linked in general?
Do you want to know what project settings to set for DLL linking?
Or maybe you have a problem with pro file settings?
What is the problem you have, what have you done and what didn't work?
Segmentation fault occurs when data from dll memory is passed to exe memory using stl vector .
So I want to link both the exe and dll dynamically to see if the segmentation fault can be resolved.
DLL IS dynamically linked, thats what it stands for: Dynamically Linked Library.
and
This is in runtime, which means the danymic linkage is resolved ok.Quote:
Segmentation fault occurs when data from dll memory is passed to exe memory using stl vector .
It seems you have a problem in the implement ion, either of the lib, or in your application, probably in your application, you are trying to access a NULL obj (your vector) or maybe you go over the vector bounds or similar.
Code:
LIBS += -lprojdll -Linclude