/tmp/ccSxmbTR.o: In function `main':
/home/zoli/MathGL/main.cpp:12: undefined reference to `QApplication::QApplication(int&, char**, int)'
/home/zoli/MathGL/main.cpp:13: undefined reference to `QMainWindow::QMainWindow(QWidget*, QFlags<Qt::WindowType>)'
/home/zoli/MathGL/main.cpp:15: undefined reference to `QWidget::setWindowTitle(QString const&)'
/home/zoli/MathGL/main.cpp:18: undefined reference to `QScrollArea::QScrollArea(QWidget*)'
/home/zoli/MathGL/main.cpp:20: undefined reference to `QMathGL::QMathGL(QWidget*, QFlags<Qt::WindowType>)'
/home/zoli/MathGL/main.cpp:24: undefined reference to `QMathGL::update()'
/home/zoli/MathGL/main.cpp:27: undefined reference to `QScrollArea::setWidget(QWidget*)'
/home/zoli/MathGL/main.cpp:28: undefined reference to `QMainWindow::setCentralWidget(QWidget*)'
/home/zoli/MathGL/main.cpp:29: undefined reference to `QWidget::show()'
/home/zoli/MathGL/main.cpp:30: undefined reference to `QApplication::exec()'
/home/zoli/MathGL/main.cpp:30: undefined reference to `QApplication::~QApplication()'
/home/zoli/MathGL/main.cpp:30: undefined reference to `QApplication::~QApplication()'
/tmp/ccSxmbTR.o: In function `QString::QString(char const*)':
/usr/include/qt5/QtCore/qstring.h:579: undefined reference to `QString::fromAscii_helper(char const*, int)'
/tmp/ccSxmbTR.o: In function `QWidget::resize(int, int)':
/usr/include/qt5/QtWidgets/qwidget.h:830: undefined reference to `QWidget::resize(QSize const&)'
/tmp/ccSxmbTR.o: In function `mglGraph::SubPlot(int, int, int, char const*, double, double)':
/usr/local/include/mgl2/mgl.h:286: undefined reference to `mgl_subplot_d'
/tmp/ccSxmbTR.o: In function `mglGraph::Box(char const*, bool)':
/usr/local/include/mgl2/mgl.h:703: undefined reference to `mgl_box_str'
/tmp/ccSxmbTR.o: In function `mglGraph::Axis(char const*, char const*, char const*)':
/usr/local/include/mgl2/mgl.h:722: undefined reference to `mgl_axis'
/tmp/ccSxmbTR.o: In function `mglGraph::Grid(char const*, char const*, char const*)':
/usr/local/include/mgl2/mgl.h:725: undefined reference to `mgl_axis_grid'
/tmp/ccSxmbTR.o: In function `mglGraph::FPlot(char const*, char const*, char const*)':
/usr/local/include/mgl2/mgl.h:1894: undefined reference to `mgl_fplot'
/tmp/ccSxmbTR.o: In function `QMathGL::setDraw(int (*)(mglGraph*))':
/usr/local/include/mgl2/qmathgl.h:61: undefined reference to `mgl_draw_graph'
/usr/local/include/mgl2/qmathgl.h:61: undefined reference to `QMathGL::setDraw(int (*)(mglBase*, void*), void*)'
/tmp/ccSxmbTR.o: In function `QTypedArrayData<unsigned short>::deallocate(QArrayData*)':
/usr/include/qt5/QtCore/qarraydata.h:230: undefined reference to `QArrayData::deallocate(QArrayData*, unsigned long, unsigned long)'
collect2: error: ld returned 1 exit status