【问题标题】:How to use Mathplot in wxSmith(Code::Blocks) and wxWidgets如何在 wxSmith(Code::Blocks) 和 wxWidgets 中使用 Mathplot
【发布时间】: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


    【解决方案1】:

    以防万一有人面临同样的问题,这就是我为解决问题所做的。将 'mathplot.cpp' 和 'mathplot.h' 复制到项目文件夹,然后通过在 Code::Blocks 中选择 Project->Add files to project... 将这两个文件添加到您的项目中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-12-05
      • 1970-01-01
      • 1970-01-01
      • 2012-06-30
      • 1970-01-01
      • 2013-02-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多