I am currently trying to create a scatter plot but, I'm unsure of what the problem is. I found this code online and I was using it as a starting point but, I can't get the program to build. This is the code that I am using.

Qt Code:
  1. #include <cmath>
  2. #include <QApplication>
  3. #include <qwt-qt4/qwt_plot.h>
  4.  
  5. int main(int argc, char **argv)
  6. {
  7. QApplication a(argc, argv);
  8.  
  9. QwtPlot plot;
  10. plot.setGeometry(0,0,640,400);
  11. plot.setAxisScale(QwtPlot::xBottom, 0.0,2.0 * M_PI);
  12. plot.setAxisScale(QwtPlot::yLeft,-1.0,1.0);
  13.  
  14. QwtPlotCurve sine("Sine");
  15. std::vector<double> xs;
  16. std::vector<double> ys;
  17. for (double x = 0; x < 2.0 * M_PI; x+=(M_PI / 10.0))
  18. {
  19. xs.push_back(x);
  20. ys.push_back(std::sin(x));
  21. }
  22. sine.setData(&xs[0],&ys[0],xs.size());
  23. sine.attach(&plot);
  24.  
  25. plot.showFullScreen();
  26. return a.exec();
  27. }
To copy to clipboard, switch view to plain text mode 

The errors that I get don't really tell me anything. The errors tells me the file path of these things and says undefined reference to:
QwtPlot::QwtPlot(QWidget*)
QwtPlot::setAxisScale(...)
QwtPlot::setAxisScale(...)
QwtPlot::~QwtPlot()
QwtPlot::~QwtPlot()

just to name a few. Does anyone know a possible solution to this problem.