I'm not sure how to do this correctly...
I've written a set of libs and compiled them with the Makefile produced from a .pro-file with the following settings:
TEMPLATE = lib
CONFIG += qt staticlib
...
...
TEMPLATE = lib
CONFIG += qt staticlib
...
...
To copy to clipboard, switch view to plain text mode
I've then written a program that wishes to make use of the static libs. That .pro-file looks something like this:
TEMPLATE = app
CONFIG += debug warn_on console
DEPENDPATH += .
INCLUDEPATH += . $(MYLIB)/headers
SOURCES += main.cpp
HEADERS += testclass.h
LIBS += -L$(MYLIB)/bin -lmylib
TEMPLATE = app
CONFIG += debug warn_on console
DEPENDPATH += .
INCLUDEPATH += . $(MYLIB)/headers
SOURCES += main.cpp
HEADERS += testclass.h
LIBS += -L$(MYLIB)/bin -lmylib
To copy to clipboard, switch view to plain text mode
Compilation of the test program works fine, but i get symbol referencing errors in the linking process. Have i missed some painfully obvious step here??
thanks in advance!
Bookmarks