Home > other >  Question on the QT project add static library (urgent)
Question on the QT project add static library (urgent)

Time:03-04

Now what do you need to call an external static library provided by the (a), excuse me each expert, how to add the static library in my project (installing a QT configure without using the static keyword, because use the keywords after the make, however, so please provide a no - static methods) thank you very much

CodePudding user response:

In. Pro, add: LIBS +=- lyourlibname

CodePudding user response:

Thank you for me to give it a try

CodePudding user response:

Masters, there's no way. (I am using the library name is libtty. A) - ltty. A - llibtty. A - L (path) - ltty. A - L (path) - llibtty. A is used for all not line

CodePudding user response:

Use mingw, don't need to add in front of the lib and suffix - ltty or -l libtyy. "a"

CodePudding user response:

I tried, but appeared the following error message://-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- the/usr/bin/ld: skipping incompatible./libtty. A. when searching for - ltty/usr/bin/ld: always find ltty//-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- to bother you again, what reason is this error? Thank you for the

CodePudding user response:

Meet the same problem, so far haven't solved, seems to be not online, how much the question ~ ~

CodePudding user response:

Meet the same problem,
  • Related