creating cpp library using qt
-
@amruz Yes. You're using widgets - so it must be a gui application with widgets, right?
QT += core gui widgets
wrote on 28 Jul 2017, 12:55 last edited by@jsulm when i try to include this library in a widget application also i am getting the same error..
this is the .pro file of my widgetapplication
#------------------------------------------------- # # Project created by QtCreator 2017-07-27T17:19:21 # #------------------------------------------------- QT += core gui widgets greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = sharedlibtryinwidget TEMPLATE = app SOURCES += main.cpp\ mainwindow.cpp HEADERS += mainwindow.h DEPENDPATH += /home/amruz/worksharedlib INCLUDEPATH += /home/amruz/worksharedlib LIBS += -L/home/amruz/build-worksharedlib-Desktop_Qt_5_7_0_GCC_64bit-Debug -lworksharedlib
-
@jsulm when i try to include this library in a widget application also i am getting the same error..
this is the .pro file of my widgetapplication
#------------------------------------------------- # # Project created by QtCreator 2017-07-27T17:19:21 # #------------------------------------------------- QT += core gui widgets greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = sharedlibtryinwidget TEMPLATE = app SOURCES += main.cpp\ mainwindow.cpp HEADERS += mainwindow.h DEPENDPATH += /home/amruz/worksharedlib INCLUDEPATH += /home/amruz/worksharedlib LIBS += -L/home/amruz/build-worksharedlib-Desktop_Qt_5_7_0_GCC_64bit-Debug -lworksharedlib
-
@amruz Yes. You're using widgets - so it must be a gui application with widgets, right?
QT += core gui widgets
21/23