[英]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.