【发布时间】:2016-03-03 02:22:10
【问题描述】:
我在 Code::Blocks 中为 GUI 应用程序使用 wxSmith。一切都可以创建基本的 wxWidgets 组件,但我需要在其中绘制一些东西。
因此,我下载了 MathPlot,并将 mathplot.h 和 mathplot.cpp 复制到我的项目文件夹中。
在 wxSmith 的调色板(在编辑器的底部)有这个类别“mathplot”。我选择了“mpWindow”组件,并添加了
#include "mathplot.h"
到我的 main.h 文件中进行参数声明等。
我的问题是我收到错误消息“未定义对 mpWindow::mpWindow(wxWindow*, int, wxPoint const&, ...) 的引用,尽管该函数是在我包含的“mathplot.h”文件中声明的.
我找不到任何显示在 wxSmith 或 wxWidget 中使用 MathPlot 的完整过程或示例的来源。
因此,如果有人可以帮助我,将不胜感激!
我正在使用 wxWidgets 2.8.12。
【问题讨论】:
标签: c++ codeblocks wxwidgets wxmathplot