MyLib
|
| - SRC the source file
| - include the header file
. | - lib library file (lib)
Qt. Pro file to add storage
INCLUDEPATH +=$$PWD/include
LIBS +=$$PWD/lib/MyLib lib
But I find that if you do not add source files in the source file folder to. Pro file (SOURCES +=$$PWD/SRC/MyLib CPP), can't identify the definition of the function in the source file,
Excuse me, is only added to the source file. Pro file that a solution
CodePudding user response:
Can use Windows API LoadLibrary display loadedOr
# pragma comment (lib, "netapi32. Lib")
CodePudding user response:
You write wrongLIBS +=L $$PWD/lib/- lMyLib