I am trying out C++ and QT but I am walking against a wall trying to solve this problem as most of this is not familiar.
I am trying to use the SIGAR library but I am getting the following message from QT:
/home/john/QT-projects/WidgetFirst/mainwindow.cpp:37: error: undefined reference to `sigar_open'
With a couple of other functions being undefined.
My best guess is that I didn't link something properly. The typhinting in the QT creator editor does work.
My .pro file looks like this:
QT += core gui webkitwidgets
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = WidgetFirst
TEMPLATE = app
INCLUDEPATH += "/home/john/Cpp libraries/sigar-master/include"
LIBS += -lboost_system -L"/home/john/Cpp libraries/sigar-master/src"
SOURCES += main.cpp\
mainwindow.cpp
HEADERS += mainwindow.h
FORMS += mainwindow.ui
CONFIG += c++11
Could somebody tell me what I did wrong or what is missing?
Thanks in advance
Assuming there is lib directory:
LIBS += -lboost_system -L"/home/john/Cpp libraries/sigar-master/lib" \
-lspecific_lib