creating cpp library using qt
General and Desktop
23
Posts
3
Posters
7.5k
Views
2
Watching
-
@amruz Yes. You're using widgets - so it must be a gui application with widgets, right?
QT += core gui widgets
@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