Originally Posted by spud Check that: Compiling MyLibrary generates MyLibrary.lib and MyLibrary.dllLoad Mylibrary.dll with depends.exe to see that your function has been successfully exported.Ensure that your makefile/.vcproj links to MyLibrary.lib The last step is done by adding the following to the .pro file of DLL 2 Qt Code: Switch view LIBS += -L<PathToLib> -lMyLibrary LIBS += -L<PathToLib> -lMyLibrary To copy to clipboard, switch view to plain text mode Thanks!! I forgot to link to DLL1 when building DLL2. It works now.
LIBS += -L<PathToLib> -lMyLibrary
Forum Rules
Bookmarks