Compilation avec wxMathPlot
Bonsoir tout le monde,
J'essaye de créer un projet wxWigets comportant un élément mpwindows (j'aimerai dans un futur très proche pouvoir tracer des courbes)...
Bref je télécharge wxMathplot que je décompresse. Je crée un projet wxWidgets
Je rajouter la wxMathplot.h et .cpp à mon projet. Je compile et là j'ai plein d'erreurs de compilation (alors que j'ai une fenêtre vierge).
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| ||=== Build: Release in testwxMathplot (compiler: GNU GCC Compiler) ===|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp||In member function 'bool mpWindow::SaveScreenshot(const wxString&, int, wxSize, bool)':|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2239|warning: 'bool wxImage::SaveFile(const wxString&, long int) const' is deprecated (declared at C:\wxWidgets-3.0.2\include/wx/image.h:560) [-Wdeprecated-declarations]|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp||In member function 'void mpMovableObject::ShapeUpdated()':|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2610|error: expected id-expression before 'for'|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2610|error: expected ';' before 'for'|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2610|error: 'wxlogcheck2610' was not declared in this scope|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2610|error: expected ';' before ')' token|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp||In member function 'void mpCovarianceEllipse::RecalculateShape()':|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2749|error: expected id-expression before 'for'|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2749|error: expected ';' before 'for'|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2749|error: 'wxlogcheck2749' was not declared in this scope|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2749|error: expected ';' before ')' token|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2750|error: expected id-expression before 'for'|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2750|error: expected ';' before 'for'|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2750|error: 'wxlogcheck2750' was not declared in this scope|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2750|error: expected ';' before ')' token|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2751|error: expected id-expression before 'for'|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2751|error: expected ';' before 'for'|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2751|error: 'wxlogcheck2751' was not declared in this scope|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2751|error: expected ';' before ')' token|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2763|error: expected id-expression before 'for'|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2763|error: expected ';' before 'for'|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2763|error: 'wxlogcheck2763' was not declared in this scope|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2763|error: expected ';' before ')' token|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp||In member function 'void mpPolygon::setPoints(const std::vector<double>&, const std::vector<double>&, bool)':|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2847|error: expected id-expression before 'for'|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2847|error: expected ';' before 'for'|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2847|error: 'wxlogcheck2847' was not declared in this scope|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2847|error: expected ';' before ')' token|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp||In member function 'void mpBitmapLayer::SetBitmap(const wxImage&, double, double, double, double)':|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2877|error: expected id-expression before 'for'|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2877|error: expected ';' before 'for'|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2877|error: 'wxlogcheck2877' was not declared in this scope|
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2877|error: expected ';' before ')' token|
||=== Build failed: 28 error(s), 1 warning(s) (0 minute(s), 4 second(s)) ===| |
J'ai essayé de comprendre toute la soirée mais en vain. Je peux joindre le fichier mathplot.cpp (je ne sais pas si je peux légalement le faire...).
En plus du fait que ça ne compile pas, ce qui me chagrine c'est le fait que je ne comprennne pas les erreurs du type
Code:
C:\cppLibraires\wxMathPlot-0.1.2\mathplot.cpp|2610|error: 'wxlogcheck2610' was not declared in this scope|
En effet, il n'y a nullle par la variable wxlogcheck2610 dans le code.
Je vous remercie par avance de l'aide que vous pourrez m'apporter. Je n'ai pas codé depuis 4 ans en c++ et le retour est difficile...