Home > front end >  Call on dynamic library DLL
Call on dynamic library DLL

Time:11-30

, ladies and gentlemen, please help me, I'm calling dynamic library, it is always an error: : 1: error: LNK1104: unable to open file "XXX. Lib", I call the dynamic library steps are as follows:
1. In the project directory to create a DLL file, used to store the library files: mainly include XXX. DLL library, XXX. Lib library
2. Specify the path of the dynamic libraries:
LIBS +=L $$PWD/DLL/- LXXX
3. The external libraries through QtCreator selection to specify the library path, the code is as follows:
Win32: CONFIG (release, the debug | release) : LIBS +=L $$PWD/DLL/- LXXX
Else: win32: CONFIG (debug, the debug | release) : LIBS +=L $$PWD/DLL/- LXXX

INCLUDEPATH +=$$PWD/DLL
DEPENDPATH +=$$PWD/DLL
4. Put the corresponding header file in project directory,
5. Compile run
Above, could you tell me where is wrong? DLL and static and dynamic library. Library. Lib is must be the same library name? www.021445.com
  • Related