boricj / numworks-rpn

RPN calculator for NumWorks
Other
36 stars 11 forks source link

Erreur a la compilation #7

Closed Annwan closed 5 years ago

Annwan commented 5 years ago

J'ai essayer de compiler ceprojet qui a l'air d'etre incroyable et make me ressort une erreur (je ne comprend ni make ni C/C++ donc pour moi c'est du charabia) La sortie de make est ci-dessous, esperant que cela aide

xxxx@xxxxxxx:~/Code/epsilon$ make PLATFORM=simulator EPSILON_APPS='rpn settings'
CXX     apps/rpn/rpn_stack.o
apps/rpn/rpn_stack.cpp: In constructor ‘Rpn::RpnStack::RpnElement::RpnElement(Poincare::Expression&, Poincare::Context&)’:
apps/rpn/rpn_stack.cpp:14:109: error: no matching function for call to ‘Poincare::Expression::simplify(Poincare::Context&, Poincare::Preferences::AngleUnit)’
 exp.simplify(context, Poincare::Preferences::sharedPreferences()->angleUnit());
                                                                              ^
In file included from apps/rpn/rpn_stack.h:5:0,
                 from apps/rpn/rpn_stack.cpp:1:
poincare/include/poincare/expression.h:191:14: note: candidate: Poincare::Expression Poincare::Expression::simplify(Poincare::Context&, Poincare::Preferences::ComplexFormat, Poincare::Preferences::AngleUnit)
   Expression simplify(Context & context, Preferences::ComplexFormat complexFormat, Preferences::AngleUnit angleUnit);
              ^~~~~~~~
poincare/include/poincare/expression.h:191:14: note:   candidate expects 3 arguments, 2 provided
apps/rpn/rpn_stack.cpp:25:3: error: no matching function for call to ‘Poincare::Expression::approximate<double>(Poincare::Context&, Poincare::Preferences::AngleUnit, Poincare::Preferences::ComplexFormat)’
   );
   ^
In file included from apps/rpn/rpn_stack.h:5:0,
                 from apps/rpn/rpn_stack.cpp:1:
poincare/include/poincare/expression.h:201:35: note: candidate: template<class U> Poincare::Expression Poincare::Expression::approximate(Poincare::Context&, Poincare::Preferences::ComplexFormat, Poincare::Preferences::AngleUnit) const
   template<typename U> Expression approximate(Context& context, Preferences::ComplexFormat complexFormat, Preferences::AngleUnit angleUnit) const;
                                   ^~~~~~~~~~~
poincare/include/poincare/expression.h:201:35: note:   template argument deduction/substitution failed:
apps/rpn/rpn_stack.cpp:23:58: note:   cannot convert ‘Poincare::Preferences::sharedPreferences()->Poincare::Preferences::angleUnit()’ (type ‘Poincare::Preferences::AngleUnit’) to type ‘Poincare::Preferences::ComplexFormat’
     Poincare::Preferences::sharedPreferences()->angleUnit(),
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
Makefile:67: recipe for target 'apps/rpn/rpn_stack.o' failed
make: *** [apps/rpn/rpn_stack.o] Error 1
boricj commented 5 years ago

L'app RPN est assez intimement liée avec les entrailles d'epsilon, il arrive relativement fréquemment que des modifications d'epsilon par l'équipe de NumWorks la casse. Ce coup-ci c'était mineur, j'ai pu corriger facilement.