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 :
Qt Code:
LIBS += ./include/projdll.libTo copy to clipboard, switch view to plain text mode
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 :
Qt Code:
LIBS += ./include/projdll.libTo copy to clipboard, switch view to plain text mode
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?
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
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.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.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Qt Code:
LIBS += -lprojdll -LincludeTo copy to clipboard, switch view to plain text mode
Last edited by produktdotestow; 18th November 2010 at 17:52.
Bookmarks