I am using wxSmith in Code::Blocks for a GUI application. Everything is alright for creating basic wxWidgets components but I need to plot something within.
Thus, I have downloaded MathPlot, and copied both mathplot.h and mathplot.cpp to my project folder.
There is this category 'mathplot' at the wxSmith's palette (at the bottom of the editor). I have selected the 'mpWindow' component, and added
#include "mathplot.h"
to my main.h file for parameters declaration etc.
My problem here is I am getting the error message "undefined reference to mpWindow::mpWindow(wxWindow*, int, wxPoint const&, ...) eventhough the function is declared in 'mathplot.h' file that I have included.
I could not find any source that shows a thorough procedures or example in using MathPlot in wxSmith or wxWidget.
Thus, if anyone could help me with this, it will be much appreciated!
I am using wxWidgets 2.8.12.