
Originally Posted by
mrwooster
btw... how do I include the library in my code? At the moment I still have
You have to update INCLUDEPATH variable in .pro file.
For example, your header files are in XXX folder.
Write this line in your .pro file:
INCLUDEPATH += XXX
INCLUDEPATH += XXX
To copy to clipboard, switch view to plain text mode
Then your GUI program will be able to locate your header files.
Using Static Libs Example:
Suppose:
I have 2 libs testLib1 and testLib2.
These files are in user/local/libs.
And header files of these libs are in user/local/headers.
This is how my GUI application .pro file will look like.
INCLUDEPATH += [B]user/local/headers[/B]
LIBS += -L[B]user/local/libs[/B]
LIBS += -l[B]testLib1[/B] -l[B]testLib2[/B]
INCLUDEPATH += [B]user/local/headers[/B]
LIBS += -L[B]user/local/libs[/B]
LIBS += -l[B]testLib1[/B] -l[B]testLib2[/B]
To copy to clipboard, switch view to plain text mode
Bookmarks