[英]Using wxMathplot with code::blocks
我在wxWidgets中使用Code :: Blocks。 总的来说,我有一个与这里描述的问题类似的问题。 好的,所以我将mathplot.h
和mathplot.cpp
复制到项目目录中,将这些文件添加到项目中,并在所有自动生成的(非空项目)wxWidgets cpp文件中执行#include mathplot.h
。 但是,当我尝试编译时,出现了以下错误:
/usr/include/wx-3.1-unofficial/wx/string.h|303|error: ‘wxString::wxString(int)’ is private|
如何解决这个问题并最终在代码:: blocks中使用wxMathPlot?
这是与错误相关的编译器日志:
/usr/include/wx-3.1-unofficial/wx/string.h: In member function ‘bool mpWindow::SaveScreenshot(const wxString&, int, wxSize, bool)’:
/usr/include/wx-3.1-unofficial/wx/string.h:303:3: error: ‘wxString::wxString(int)’ is private
wxString(int);
/home/pekov/Workshop/Code::Blocks/tester/mathplot.cpp:2239:47: error: within this context
return screenImage.SaveFile(filename, type);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.